recentpopularlog in

Copy this bookmark:

to read

bookmark detail

scripting - How to get Command history by cursor key in Linux tclsh - Stack Overflow |
Also, install the 'tkcon' package, from ActiveState.
You want access to the readline library, you can do that with rlwrap:
<code class="language-bash">
rlwrap tclsh

Useful options are -c for file name completion, and -f to add words from a file to the completion list:
<code class="language-bash">
rlwrap -cf my_complete_file tclsh

Since you almost always want to use rlwrap, adding a shell alias is useful:
<code class="language-bash">
alias tclsh='rlwrap tclsh'
tcl  tclsh  commandline  history  readline  solution 
january 2019 by kme
view in context