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