key - Paramiko VT100 发送功能键不起作用
问题描述
使用 Paramiko 导航界面一切正常,直到我尝试使用 [F4] 键或其他特殊功能键。
conn = client.invoke_shell(term = 'vt100', width=800, height=800)
conn.settimeout(5)
time.sleep(3)
output = conn.recv(65535)
我尝试发送以下(F4)键但没有成功
channel.send('\e[14~')
channel.send('\EOS')
channel.send('^[OS')
我还尝试在键盘上发送右箭头键 (6) 常规箭头不适用于我需要完成的操作。我试图跟随键。
channel.send('\E[1;3C')
channel.send('\E[1;4C')
channel.send('\E[1;5C')
channel.send('\E[1;6C')
channel.send('\E[1;7C')
我参考过:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf
解决方案
推荐阅读
- python - 为什么我的 pygame 按钮并不总是有效?
- jquery - Rail6-Webpack jQuery 配置实现导航栏下拉工作 0
- python - Python - TypeError:'str'和'int'的实例之间不支持'<'
- flutter - 如何在颤动中显示圆形进度指示器和底片?
- java - 在 Java 中打印圣诞树任务会使用完全相同的代码打印两个不同的结果
- google-sheets - 单元格值是否在其他选项卡上?
- c++ - 创建具有可变维数的 C++ 向量
- android - 为什么 adb shell 被杀
不杀死进程? - javascript - 有没有办法避免生成重复条目?
- javascript - 如何找到 JavaScript 数组中所有元素的 10% 折扣