Shell Tclx:有没有办法使用commandloop保存历史记录
在tclx中,是否可以以交互模式保存历史记录,并在linux shell中访问用于发送选项卡的交互控制台Shell Tclx:有没有办法使用commandloop保存历史记录,shell,tcl,Shell,Tcl,在tclx中,是否可以以交互模式保存历史记录,并在linux shell中访问用于发送选项卡的交互控制台 package require Tclx proc customPrompt { } { return "TC> " } commandloop -interactive on -prompt1 customPrompt 我在tclsh周围包装了一个函数: tclsh() { if [ $# -gt 0 ]; then command tclsh "$
package require Tclx
proc customPrompt { } {
return "TC> "
}
commandloop -interactive on -prompt1 customPrompt
我在tclsh周围包装了一个函数:
tclsh() {
if [ $# -gt 0 ]; then
command tclsh "$@"
else
rlwrap tclsh
fi
}
提供readline命令行编辑功能,就像在shell提示符下一样。如果它使用的是
历史
系统,它应该相当简单…哪个交互式控制台?哪个贝壳?为什么要给它寄账单?