Python Curses
Reference
- Curses library references: http://docs.python.org/lib/module-curses.html
- A curses tutorial: http://www.amk.ca/python/howto/curses/curses.html
- Another good example: http://www-128.ibm.com/developerworks/linux/library/l-python6.html
Example
#!/usr/bin/python
import curses
def main(screen):
screen.addstr("Hi there!\n")
screen.addstr("Press Q to quit: ")
while 1:
c = screen.getch()
if c == ord('q'): break
curses.endwin()
if __name__ == '__main__':
curses.wrapper(main)