Catching console output interactively

Byrom, R (Rob) R.Byrom at rl.ac.uk
Fri Apr 16 08:56:24 EDT 2004


hi,

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?

thanks for any help,

Rob




More information about the Python-list mailing list