16. History

This chapter describes Tcl’s history mechanism. In applications where you type commands interactively, the history mechanism keeps track of recent commands and makes it easy for you to re-execute them without having to retype them from scratch. You can also create new commands that are slight variations on old commands without having to completely retype the old commands—to fix typographical errors, for example. Tcl’s history mechanism provides many of the features available in the Unix csh, but not with the same syntax in all cases.

Note

TkCon is a replacement for the standard console that comes with Tk. Among its many features is a sophisticated command history and editing functionality. You can use the arrow keys to cycle between ...

Get Tcl and the Tk Toolkit, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.