我是 ExpectIt API 的新手。我可以执行命令并得到响应,但我不能通过给出转义键(ctrl+shift+6)来停止运行命令。
如何通过 ExpectIt API 向终端发送转义键以停止运行命令?
例子
R1#ping ip 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.... <div style="color:red"><b>I pressed escapse character here</b></div>
Success rate is 0 percent (0/4)
R1#