History for Command Line Program

Will Ware wware at world.std.com
Thu Sep 21 11:22:30 EDT 2000


Curtis Jensen (cjensen at bioeng.ucsd.edu) wrote:
> Is there a way I could capture the up
> arrow, without the curses module?  Thanks.

I think the readline library does this. Here's a web page for it:
http://cnswww.cns.cwru.edu/~chet/readline/rltop.html
I'm pretty sure it's possible to compile Python to use readline.
It's definitely something that would be handy to have. Readline
can be configured to use either a vi-like mode or an emacs-like
mode for command line editing.
-- 
# - - - - - - - - - - - - - - - - - - - - - - - -
# Resistance is futile. Capacitance is efficacious.
# Will Ware	email:    wware @ world.std.com



More information about the Python-list mailing list