Reputation: 5105
i am using raw_input() in a script to take a user input which needs to refined iteratively.
is there any way simple way to give it the familiar cursor functionality enabling cursor and (ideally) mouse support so that the left and right cursors scroll along the string and the up cursor brings up the previous entry?
thanks :)
Upvotes: 0
Views: 513
Reputation: 21
you can benefit from bash-like history-list editing by wrapping cmd module.
http://docs.python.org/library/cmd.html
Upvotes: 0