【发布时间】:2021-06-24 04:28:44
【问题描述】:
我用的是tcl8.6,发现'history'中记录的命令只有20条。 如何增加 tcl shell 的“历史”中记录的命令大小?
【问题讨论】:
我用的是tcl8.6,发现'history'中记录的命令只有20条。 如何增加 tcl shell 的“历史”中记录的命令大小?
【问题讨论】:
看起来你想要history keep $biggerNumber -- http://www.tcl-lang.org/man/tcl8.6/TclCmd/history.htm
根据您使用的平台,您可能会喜欢 rlwrap,它为您提供所有 readline 行编辑功能:历史箭头键等。
alias tclsh='rlwrap tclsh'
或者,Tkcon 也是一个不错的选择。
【讨论】: