recentpopularlog in

Copy this bookmark:





to read

bookmark detail

scripting - How to get Command history by cursor key in Linux tclsh - Stack Overflow | https://stackoverflow.com/
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
</code>

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
</code>

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