在我使用FluxBox的Ubuntu 14中,我使用它来绑定Eterm上的操作。这是我的user.cfg文件:
[...]
begin actions
bind ctrl shift button3 to string '^[]6;14^G'
bind ctrl button3 to menu "Eterm"
bind ctrl button2 to string '^[[?30t'
bind ctrl button1 to string '^[]5;^G'
# mine actions start here
bind End to echo '^E'
bind F1 to echo '^[OP'
bind F2 to echo '^[OQ'
bind F3 to echo '^[OR'
bind F4 to echo '^[OS'
bind F5 to echo '^[5'
bind F6 to echo '^[6'
bind F10 to echo '99^Msigi^M'
end actions
[...]如您所见,我将End和F按钮绑定到特定的命令。我需要在telnet会话中使用这些命令。这很好,但是如果我激活了Caps Lock,以前的任何操作都不起作用(甚至是Eterm本机操作)。
我不知道为什么会这样,有人可以吗?
一个适合我的解决方案,正如@Thomas Dickey所强调的那样,就是使用修饰符Lock,因此,这个操作:
begin actions
[...]
bind End to echo '^E'
[...]
end actions变成这样
begin actions
[...]
bind End to echo '^E'
bind Lock End to echo '^E'
[...]
end actions现在,End按钮运行良好,即使对CapsLock活动也是如此。
发布于 2016-03-31 20:24:24
CapsLock (几乎)就像按住shift键一样。
Eterm (实际上是rxvt,因为Eterm就是从那里开始的)将函数(和游标)键的shift和control修饰符视为不同的值。
下面是指向几个表的指针来说明:
https://unix.stackexchange.com/questions/273404
复制相似问题