faqts : Computers : Programming : Languages : Python : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 8 people (63%) answered Yes
Recently 4 of 5 people (80%) answered Yes

Entry

How can I control input and output to the screen other than the print command?

Jul 6th, 2000 04:12
unknown unknown, Grant Edwards


There are two modules that provide that sort of thing:
  curses (uses curses)
  snack  (uses newt/slang)
I think you can find the curses module in the usual places
(www.python.org).
The docs for snack/newt are pretty skimpy.  It comes with RH, and there 
are some example programs in the newt distribution. I don't know if it's 
current, but you can get version 0.50 it from my ftp site:
  ftp://ftp.visi.com/users/grante/stuff/newt-0.50.tar.gz