itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
199 stars 22 forks source link

Windows #3

Open olls opened 10 years ago

olls commented 10 years ago

It would be nice if we could get it running on most platforms. I sorta got it running on Windows, the main hurdle to get it running was input, then it is playable. The issues we have are:

geraintwhite commented 10 years ago

For colours we can use colorama or similar external module, or modify colors.py to have fallbacks (\033 for windows)

geraintwhite commented 9 years ago

None of the escape codes will work on Windows. We should probably add support for turning off escape codes.

olls commented 8 years ago

py

olls commented 8 years ago

Works well under Cygwin

geraintwhite commented 8 years ago

:+1: nbinput and escape codes (incl colours)?

geraintwhite commented 8 years ago

The other problem with Windows is that CMD is too narrow and can't be made wider.

olls commented 8 years ago

Yes, only problems were with arrow keys and some Unicode characters

olls commented 8 years ago

https://github.com/adoxa/ansicon converts ANSI escape codes to the Windows functions.

Or we could do it manually: https://msdn.microsoft.com/en-us/library/windows/desktop/ms682088(v=vs.85).aspx#_win32_character_attributes (More fun!)