Reputation: 41
How can I add auto-completion of commands and directories on pressing <TAB>
in TCL shell ?
I know that a tclreadline package can be downloaded, but I have no clue how to use it and integrate it in my tcl shell.
Upvotes: 1
Views: 2353
Reputation: 658
You can look also on tkcon. I found it very user friendly. In addition you can work with this tool "just from the box" without additional configurations.
Upvotes: 1
Reputation: 40733
You will find what you need at the TclReadline site. They suggest putting the following in your ~/.tclshrc
file:
if {$tcl_interactive} {
package require tclreadline
::tclreadline::Loop
}
I also added the following prompt to remind me I am using Tcl Readline:
proc ::tclreadline::prompt1 {} { return "%% " }
Upvotes: 3