Tcl 多重聚焦
如何从脚本文件的Tcl 多重聚焦,tcl,expect,xterm,Tcl,Expect,Xterm,如何从脚本文件的multixterm中关注特定的xterm窗口 例如,我使用以下命令从文件运行multixterm: set xtermNames{12} xtermstartal 打开两个分别名为1和2的xterm窗口。我想在xterm1上打印“Hello”,在xterm2上打印“World” 我知道xtermSend将向所有窗口发送字符串,但我想知道如何仅向单个窗口发送。我找到了它!应该使用exp\u send$spawn\u id“Text”命令,其中$spawn\u id是所需xterm
multixterm
中关注特定的xterm
窗口
例如,我使用以下命令从文件运行multixterm:set xtermNames{12}
xtermstartal
打开两个分别名为1和2的xterm窗口。我想在xterm1上打印“Hello”,在xterm2上打印“World”
我知道
xtermSend
将向所有窗口发送字符串,但我想知道如何仅向单个窗口发送。我找到了它!应该使用exp\u send$spawn\u id“Text”
命令,其中$spawn\u id是所需xterm窗口的唯一spawn id。我找到了它!应该使用exp\u send$spawn\u id“Text”
命令,其中$spawn\u id是所需xterm窗口的唯一spawn id。我建议您使用tmux或screen。相比之下,这个multixterm看起来相当脆弱。我建议您考虑使用tmux或screen。相比之下,这个multixterm看起来相当脆弱。