致力于Ubuntu中文推广http://forum.ubuntu.org.cn/
http://forum.ubuntu.org.cn/viewtopic.php?t=492440
代码: 全选
bind -u previous-history -r "\e[A"
astolia 写了: ↑2021-09-10 16:12 感觉是个X-Y Problem。你想要达成什么目的? 另外,这个不是xterm的功能。xterm只负责将按键传递给后台的shell,由shell来具体处理。如果shell是bash,可以用 代码: 全选bind -u previous-history -r "\e[A"来解除绑定,也可以用bind命令的其他参数来绑定到其他功能上,具体见manpage