views:

49

answers:

1

hi all,

How can I achieve auto-completion of key words and directories by typing TAB (or something else) in TCL shell , tclsh.

Thanks in advance

aditya

+3  A: 

You need to find a copy of tclreadline, or switch to using tkcon (a graphical terminal written in Tcl that acts as a console) if using a GUI app is acceptable at all. FWIW, I can definitely recommend tkcon; the only reason I don't use it that much is because I'm often working with a custom build of Tcl that's hooked up to other things.

Donal Fellows
If at all possible, tkcon is the way to go. The tclrealine route is worth doing if you can't use a windowed environment, but it's certainly more of a hassle than tkcon (and tkcon is fantastic).
RHSeeger