thisisparker / cursewords

:pencil: Terminal-based crossword puzzle solving interface
GNU Affero General Public License v3.0
248 stars 28 forks source link

Possible to also make cursewords compatible with Windows? #22

Closed timtebbe closed 3 years ago

timtebbe commented 5 years ago

I originally got "ImportError: No module named '_curses'", so installed Curses from https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses, but now I get a UserWarning out of blessed.terminal, and nothing happens.

c:\program files\python35\lib\site-packages\blessed\terminal.py:32: UserWarning: One or more of the modules: 'termios', 'fcntl', and 'tty' are not found on your platform 'win32'. The following methods of Terminal are dummy/no-op unless a deriving class overrides them: setraw, cbreak, kbhit, height, width warnings.warn(_MSG_NOSUPPORT) This puzzle is 15 columns wide and 15 rows tall. The terminal window must be taller to properly display it.

thisisparker commented 5 years ago

cursewords probably won't be natively Windows compatible for a long time, because the curses wrapper it relies on—blessed—isn't. There's some suggestion that it could one day be, and if I could easily get Windows support by upgrading there, I'd of course be happy to do so.

BUT! I've heard from folks that if you use Windows Subsystem for Linux (in Windows 10), it "just works." I am not a Windows user and don't have access to a Windows machine, so unfortunately I couldn't give you more specific directions than that.

chungy commented 5 years ago

Might also be possible to use Cygwin to support running it, if you have Windows 10 Home or older versions of Windows.

jquast commented 4 years ago

The blessed library has been compatible with windows since Dec. 2019, have another look by upgrading, pip install -U blessed

thisisparker commented 3 years ago

Should now work just fine as of v1.0.8!