views:

984

answers:

3

hi there,

i'm looking into developing a console-app in python which should be able to run under windows as well as linux. for this, i'd really like to use a high-level console library like curses. however, as far as i know, curses is not available on windows. what other options do i have? unfortunately, using cygwin under windows is not an option ...

thanks for your help!

A: 

PDCurses works on Windows, but I don't know any Python wrapper. I wonder whether the curses module could be implemented on Windows with PDCurses?

Bastien Léonard
A: 

develop two interfaces for your program, a text console ui and a graphical ui. Make the console one work only on linux. Nobody on windows uses text console apps.

nosklo
+1 Those that do use text console apps on windows use cygwin, which has ncurses. It's always nice if it's possible to separate the UI from the implementation and this gives a nice incentive to do so.
Al
If a text UI is sufficient, it would be wasteful to write both text and graphic UIs IMO.
Bastien Léonard
well, the people using this app would also use it on windows. especially since they would use it on windows and on linux, so two different interfaces would not be nice to them. plus, i would have to develop two interfaces, which i'd rather not.
andreash
+2  A: 

There is a wcurses. I've never tried it but it may meet your needs. It sounds like it doesn't have full curses compatibility, but may be close enough. Also it might not be using the DOS terminal, but opening a GUI window and drawing monospaced text inside.

Other windows text mode options are:

I believe both are windows only.