【问题标题】:How to increase command history size for tcl shell如何增加 tcl shell 的命令历史记录大小
【发布时间】:2021-06-24 04:28:44
【问题描述】:

我用的是tcl8.6,发现'history'中记录的命令只有20条。 如何增加 tcl shell 的“历史”中记录的命令大小?

【问题讨论】:

    标签: tcl history


    【解决方案1】:

    看起来你想要history keep $biggerNumber -- http://www.tcl-lang.org/man/tcl8.6/TclCmd/history.htm

    根据您使用的平台,您可能会喜欢 rlwrap,它为您提供所有 readline 行编辑功能:历史箭头键等。

    alias tclsh='rlwrap tclsh'
    

    或者,Tkcon 也是一个不错的选择。

    【讨论】:

      猜你喜欢
      • 2011-06-16
      • 2013-05-12
      • 2021-02-17
      • 2013-08-17
      • 2017-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-25
      相关资源
      最近更新 更多