From: liu j. <ljc...@ya...> - 2005-04-15 08:39:05
|
环境: freebsd 5.3-release, gnome2.10.0, zh-fcitx-3.1, zh-cxterm-5.0.3, csh (其中gnome, zh-fcitx, zh-cxterm都是通过ports安装) 在doc的cxterm.faq虽可以见到如下的问答: 5.8 I cannot input or output Chinese in the shell prompt -- what I got is two random ASCII characters instead of a Chinese character. Csh, sh, ksh usually don't have this problem. But be careful of the name of the shell, for example in Linux, csh actually means tcsh and sh means bash. Some system (or your shell startup file, e.g. .cshrc or .login) set the tty to strip the 8th bit. You can reset it by typing "stty pass8". (Different systems may have different stty format. Read stty(1) manual for help. Some possible stty options are "pass8", "cs8", "-istrip", "-parenb", etc.) 但我的情况是,在x window中使用CXterm或者cxterm -GB可以通过“fx”转换各种中文输入法或者英文输入法。如在五笔输入状态下,窗口的下端虽可以显示汉字的选取,但汉字无法显示在窗口(光标不会位移)。有时乱按各键之下,可以在中文输入状态下见到有ascii码的出现。 尝试在网上搜索,但还是无法解决问题。 谢谢解答。 附: .xinitrc部分配置 export LC_CTYPE=ZH_CN.GBK export XMODIFIERS @im=fcitx fcitx& _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ |