By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,096 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,096 IT Pros & Developers. It's quick & easy.

curses library

P: n/a
Hello list,

I need to write a console application.

Are there any wrappers around curses/ncurses?
Or any other similar libraries?

Thanks.
--
Regards,
Ghirai.
Aug 14 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 2007-08-14, Ghirai <gh****@ghirai.comwrote:
I need to write a console application.

Are there any wrappers around curses/ncurses?
Or any other similar libraries?
The answer depends on your chosen platform. Python hasn't got a
cross-platform console library as one of its included batteries.

First try the curses module. It does come with Python on systems
with a curses port.

For Windows, there's the Effbot's console module.
http://effbot.org/zone/console-index.htm

Or go to plan B: Use a Tkinter or other GUI interface's text
widget.

--
Neil Cerutti
Aug 14 '07 #2

P: n/a
On Tue, 14 Aug 2007 18:27:16 GMT
Neil Cerutti <ho*****@yahoo.comwrote:
On 2007-08-14, Ghirai <gh****@ghirai.comwrote:
I need to write a console application.

Are there any wrappers around curses/ncurses?
Or any other similar libraries?

The answer depends on your chosen platform. Python hasn't got a
cross-platform console library as one of its included batteries.

First try the curses module. It does come with Python on systems
with a curses port.

For Windows, there's the Effbot's console module.
http://effbot.org/zone/console-index.htm

Or go to plan B: Use a Tkinter or other GUI interface's text
widget.
Forgot to say, i don't need it to work on windows :)

--
Regards,
Ghirai.
Aug 14 '07 #3

P: n/a
In message <ma***************************************@python. org>, Ghirai
wrote:
I need to write a console application.
Why not just use VT100 escape sequences directly? Terminal emulators don't
support anything else.
Aug 25 '07 #4

P: n/a
Ghirai wrote:
Hello list,

I need to write a console application.

Are there any wrappers around curses/ncurses?
Or any other similar libraries?

Thanks.
I have some links here:
http://www.limsi.fr/Individu/pointal...s-graph-curses

A+

Laurent.

Aug 25 '07 #5

P: n/a
Ghirai <gh****@ghirai.comwrites:
Are there any wrappers around curses/ncurses?
Python has its own 'curses' module in the standard library of course.

<URL:http://docs.python.org/lib/module-curses>

That's if you want to work directly with the curses functionality,
which is rather low-level.
Or any other similar libraries?
The library that I always think of when I think "Python ncurses
wrapper" is:

Urwid is a console user interface library for Python.

<URL:http://excess.org/urwid/>

Available as a package (e.g. 'python-urwid') in most GNU/Linux
distributions, or you can install it from the download link.

--
\ "Pity the meek, for they shall inherit the earth." -- Donald |
`\ Robert Perry Marquis |
_o__) |
Ben Finney
Aug 25 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.