469,592 Members | 1,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

curses library

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
5 2473
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
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
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
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
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.

Similar topics

3 posts views Thread by Brian | last post: by
10 posts views Thread by Michael | last post: by
30 posts views Thread by Ian Ward | last post: by
48 posts views Thread by Daniele C. | last post: by
7 posts views Thread by Gasten | last post: by
15 posts views Thread by pinkfloydhomer | last post: by
1 post views Thread by shrek2099 | last post: by
5 posts views Thread by 7stud | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.