473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2744
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Brian | last post by:
Hello; I'm writing a program with curses in python and having a bit of trouble understanding how to use unittest. So far, I have used testing successfully -- as long as the report goes to stdout...
10
by: Michael | last post by:
I am having a hard time trying to find out how to stop windows from line wrapping using the curses library. Does anyone know how? Thanks, Michael
30
by: Ian Ward | last post by:
When I run the following code in a terminal with the encoding set to UTF-8 I get garbage on the first line, but the correct output on the second. import curses s = curses.initscr()...
48
by: Daniele C. | last post by:
As soon as my sourceforge.net project gets approved, I am going to build a ncurses port to win32 bindable to sockets, e.g. allowing VT100/ANSI terminals and the creation of simple terminal servers...
3
by: skip | last post by:
I'm having no success building the curses module on Solaris 8 (yes, I know it's ancient - advancing the state-of-the-art is not yet an option) for Python 2.4. Sun provides an apparently ancient...
7
by: Gasten | last post by:
Hello. The last weeks I've been coding a roguelike (you know, like nethack) in python using the nCurses library. Some week ago I ran into a problem: When I made the object for messagebar-output, I...
15
by: pinkfloydhomer | last post by:
I need to develop a cross-platform text-mode application. I would like to do it in Python and I would like to use a mature text-mode library for the UI stuff. The obvious choice, I thought, was...
1
by: shrek2099 | last post by:
Hi All, Recently I ran into a problem with UTF-8 surrport when using curses library in python 2.5 in Fedora 7. I found out that the program using curses cannot print out unicode characters...
5
by: 7stud | last post by:
I can't see to get any y, x coordinates to work with curses. Here is an example: import curses def my_program(screen): while True: ch = screen.getch() if ch == ord("q"): break
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.