为什么我不能使用向左和向右箭头键(实际上,向上和向下键也是如此)来移动tclsh交互式外壳中当前所在的行?如果我尝试按任何一个,我都会得到一堆abracadabra,而不是来回移动。例如,当您键入错误时,这并不是很方便,但是您不能向后移动光标来更改它。您必须使用退格键来删除您在键入错误的位置之后键入的所有内容,从而破坏您的所有工作。坦率地说,是否可以解决此问题?
我是TCL的新手,正在努力寻找其他模块.SOURCE命令帮助我包含了我在TCL程序中编写的其他代码.但是,我认为访问代码库时遇到问题.
例如,当我引用数学函数时,找不到它.我认为在搜索通过tchsh85调用的程序时,我必须要做一些事情来包括数学库在我的计算机上的位置.
invalid command name "::math::statistics::mv-ols"
None of these directories exist on my computer: info library= C:/Tcl/lib/tcl8.5 auto_path= C:/Tcl/lib/tcl8.5 C:/Tcl/lib c:/tcl/lib/teapot/package/win32-x86_64/lib c:/tcl/lib/teapot/package/tcl/lib tcl library= C:/Tcl/lib/tcl8.5 auto_index= source C:/Tcl/lib/tcl8.5/word.tcl auto_index= source C:/Tcl/lib/tcl8.5/tm.tcl auto_index= source C:/Tcl/lib/tcl8.5/tm.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/parray.tcl auto_index= source C:/Tcl/lib/tcl8.5/history.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/history.tcl auto_index= source C:/Tcl/lib/tcl8.5/package.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/history.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= source C:/Tcl/lib/tcl8.5/safe.tcl auto_index= …Run Code Online (Sandbox Code Playgroud) 我对 tcl 字典比较陌生,没有看到关于如何初始化空字典、循环日志并将数据保存到其中的良好文档。最后我想打印一个如下所示的表格:
- Table:
HEAD1
Step 1 Start Time End Time
Step 2 Start Time End Time
**
- Log:
**
HEAD1
Step1
Start Time : 10am
.
.
.
End Time: 11am
Step2
Start Time : 11am
.
.
End time : 12pm
HEAD2
Step3
Start Time : 12pm
.
.
.
End Time: 1pm
Step4
Start Time : 1pm
.
.
End time : 2pm
Run Code Online (Sandbox Code Playgroud) 在 tclsh 中,我想隐藏一个不能直接调用但可以以某种方式调用的命令。有没有一个好的方法可以做到这一点或者我可以研究的想法。