How do I make a command line text editor?
Another option if you want to write a TUI (Text User Interface) without having to descend to curses is Snack, which comes with Newt.
Take a look at Curses Programming in Python and this as well.
try python curses module , it is a command-line graphic operation library.