Catching console output interactively

Michael Hudson mwh at python.net
Tue Apr 20 07:42:37 EDT 2004


"Byrom, R (Rob) " <R.Byrom at rl.ac.uk> writes:

> 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?

What platform?

Cheers,
mwh

-- 
  There's an aura of unholy black magic about CLISP.  It works, but
  I have no idea how it does it.  I suspect there's a goat involved
  somewhere.                     -- Johann Hibschman, comp.lang.scheme



More information about the Python-list mailing list