Readline Tcl extension
The tclreadline package makes the GNU readline library available for
interactive Tcl shells. This includes history expansion and
file/command completion. Command completion for all Tcl/Tk commands is
provided and commmand completers for user defined commands can be
easily added. tclreadline can also be used for Tcl scripts which want
to use a shell like input interface. In this case the
::tclreadline::readline read command has to be called explicitly.
The advantage of tclreadline is that it uses the callback handler
mechanism of the GNU readline while it processes Tcl events. This way
X events from a wish GUI will processed as well as events from the
tclreadline line interface.