KeyPress events without wish



Hi All,
How can I program keypress events without the wish window? I have a
console
application written in Tcl. I would like to program the arrow keys for
previously executed
command retrieval as we get in a linux shell.

Thanks.
-Sriram K
.