Catching console output interactively

Miki Tebeka miki.tebeka at zoran.com
Sun Apr 18 04:43:18 EDT 2004


Hello Rob,

> I'd like to be able to trap console output as the user writes interactively.
> For example if the user press the up or down keys I'd like to be able to
> catch this and return the last executed command (a bit like the bash_history
> idea). Can anyone point me in the right direction?
Depending on what you'd like to do you can try:
"curses" module (available only on unix like systems)
wxPython
PyGame

HTH.
Miki




More information about the Python-list mailing list