On Sat, Dec 05, 2009 at 07:04:28PM +0800, Ji ZhengYu wrote: > 2009/12/4 amateur <tianlei.z...@gmail.com>: > > Xterm 中无法通过 Shift 按键切换 scim 的中英文输入模式,不知道大家遇到 > > 这个问题没有。最近这两天看了源码,找到了一个解决办法。在 .Xresources > > 中加入: > > > > XTerm*VT100*translations: #override \n\ > > Shift <KeyRelease>:insert-seven-bit() > > > > 就可以解决这个问题。 > > > > 问题的原因是 Xterm 没有把 Shift Key Release 事件传递给 Scim。加入这句 > > 话之后就能够将 Shift Key Release 事件传递给 scim。 > > > > 我在想,有没有必要将这个配置加入到 deiban 的 xterm 包中。毕竟对中文输 > > 入法的影响还是挺大的,并且很多人不知道这个解决办法。 > > > > 大家有什么看法? > > > > 没用过这个 xterm,一般就用用 gnome-terminal 或者是 rxvt-unicode。 > > 如果真是如你所说的话,我认为可以向上游维护者反映一下。不过,不知道 > 这样的设置会不会影响到英文用户的输入? ------------------------- 确实,我也是不确定这样会不会产生什么意料之外的影响。就当做给使用 xterm 的同学们的一个 Tips 吧。
另外,您使用 rxvt-unicode 的时候有没有试过 vim 中的 Meta-key 键绑定。我 发现 rxvt-unicode 中无法在 vim 中绑定 M-key 键,试试这个例子: :imap M-i ItWorks!<CR> 我在 rxvt-unicode 中是无法成功的,但是 xterm 可以。这也是我转向 xterm 的主要原因。 -- When asked by an anthropologist what the Indians called America before the white men came, an Indian said simply "Ours." -- Vine Deloria, Jr. -- To UNSUBSCRIBE, email to debian-chinese-gb-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org