I would like to share some thoughts...
Some days ago I wanted to made 100% terminal (as TUI, not CLI) app for Windows (break from libtcod
). I'm programming in python for 4 years so I decided to do it in python.
I read more than I would like to read about the problems with TUI application programmed in python under Windows. Especially about curses module. I didn't want to use pseudoconsole or emulated terminal as in wcurses. I tried a lot things - from simple libraries as termcolor and colorama, to more complex tools (ipython, click, docopt). Some had small capabilities, some had bad documentation and some just did not fit me.
I could probably achieve the desired result with combination a few simple tools and native python's libraries, but it could be screwed up.
I decided to try something what was advised against from everybody. Just use standard curses compiled under windows. Works perfect. Or... or almost perfectly. I didn't notice any issues, bugs or anything what can bother me. However, there is one problem. I cannot run scripts using curses in pycharm. New application will not start. Even simplest curses code what should be run with pycharm's built-in terminal doesn't work. Ok, there is problem, because this makes debugging more difficult.
But as I say earlier, standard curses works under windows without problems.
I thought why I have seen no such this type answer to the question 'curses, python and windows'. Wherever I was looking for advice I read: 'curses under windows? unfortunately, it's impossible'. Or 'just use wcurses'.
And... There is interesting.
Maybe curses support under python builds for windows is fixed now and those answers are out of date?