Asciinema: Windows not supported, right?

Created on 29 Oct 2013  ·  12Comments  ·  Source: asciinema/asciinema

A quick pip install test from the Github repo reveals that asciicinema doesn't work out of the box on Windows, even though it does install an .exe to the Python Scripts folder. On my Win7 machine It fails with ImportError: No module named termios.

A little searching reveals there (probably) isn't a Windows equivalent,
http://stackoverflow.com/questions/933745/what-is-the-windows-equivalent-to-the-capabilities-defined-in-sys-select-h-and-t, and that therefore asciicinema is likely not supposed to work on Windows.

It would be good if the Readme states what operating systems asciicinema is intended for / known to work on.

All 12 comments

Right, it will never support Windows as Windows doesn't have pseudo-terminal, select() and other unix capabilities. The information about the supported systems is now on the homepage: http://asciinema.org

@sickill is it possible to support cygwin?

@noisy cygwin doesn't support UNIX-like pseudo-terminal so it's unlikely to make it work on Windows. All UNIX family systems (Linux, *BSD, Mac OS X), have PTYs, but Windows is a completely different OS.

@masaeedu feel free to experiment with it. I'm fine with someone maintaining a friendly Windows fork of asciinema. However, at this moment I'm not interested in merging any Windows specific changes into the main repository. asciicast format is documented, so as long as recording on Windows produces compatible asciicast file, the web player should be able to replay it.

@masaeedu There is Windows fork by @mattn - https://github.com/mattn/asciinema/tree/windows

I was wrong saying "it will never support Windows" :)
It seems it now installs and works perfectly fine under Win10 (WSL): https://asciinema.org/a/123255

March 28 2018,
I tried a pip install of asciinema on Windows 10, and encountered the termios error. Is this still resolvable, or where do i go to fork a compatible version?

@sickill Windows 10 now has an official console api, which should make Windows support require far less code. Does that change anything?

@mikemaccana thank for bringing this up! I think this could open the way for native Windows support. I just skimmed through the linked article, but it looks promissing 👍

@sickill Have you taken a look at winpty? It's README claims to work on Windows XP and later.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nictuku picture nictuku  ·  10Comments

laughedelic picture laughedelic  ·  7Comments

deeplook picture deeplook  ·  10Comments

lukehinds picture lukehinds  ·  5Comments

omaraboumrad picture omaraboumrad  ·  10Comments