Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curses alternative for windows [closed]

Tags:

python

curses

Is there any alternative of the curses module for python to use in windows? I looked up in the python documentation, but there its mentioned that its for using in unix. I am not much familiar with these, so is there some way to use curses module in windows or is there some similar module specially for windows? [I am using Python 3.3]

like image 940
Chandan Avatar asked Feb 08 '13 18:02

Chandan


People also ask

Is ncurses available for Windows?

ncurses is only a library that helps you manage interactions with the underlying terminal environment. But it doesn't provide a terminal emulator itself. The thing that actually displays stuff on the screen (which in your requirement is listed as "native resizable win32 windows") is usually called a Terminal Emulator.

What does curses wrapper do?

The wrapper() function takes a callable object and does the initializations described above, also initializing colors if color support is present. wrapper() then runs your provided callable. Once the callable returns, wrapper() will restore the original state of the terminal.

What are Linux curses?

curses is a terminal control library for Unix-like systems, enabling the construction of text user interface (TUI) applications.


1 Answers

I'm happy to report that there's now a Windows build of Curses available as an extension for Python on Windows, from here. (I didn't write it, and I don't know who maintains it.)

You can run the installer, and import curses to get curses running. (Verified on 64-bit Windows 7 and Windows 8.)

@ArtOfWarfare points out that you can install this via Pip with this commend:

pip install http://www.lfd.uci.edu/~gohlke/pythonlibs/xugyqnq9/curses-2.2-cp27-none-win32.whl 
like image 90
ashes999 Avatar answered Sep 17 '22 17:09

ashes999