LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1035|回复: 3

问urxvt中文输入

[复制链接]
发表于 2009-1-6 23:12:54 | 显示全部楼层 |阅读模式
用的是rxvt-unicode,配置文件如下:

  1. URxvt.background:black
  2. !URxvt.foreground:gray60
  3. URxvt.foreground:white
  4. URxvt.geometry: 90x25+180+200
  5. URxvt.colorBD:yellow
  6. URxvt.colorUL:green
  7. URxvt.cursorColor:red3
  8. URxvt.color0:black
  9. URxvt.color1:red3
  10. URxvt.color2:springgreen
  11. URxvt.color3:wheat3
  12. URxvt.color4:navy
  13. URxvt.color5:magenta4
  14. URxvt.color6:steelblue1
  15. URxvt.color7:gray85
  16. URxvt.color8:gray10
  17. URxvt.color9:orangered2
  18. URxvt.color10:chartreuse3
  19. URxvt.color11:lightgoldenrod2
  20. URxvt.color12:skyblue1
  21. URxvt.color13:pink1
  22. URxvt.color14:lightblue1
  23. !Scroll
  24. URxvt.scrollBar: true
  25. URxvt.scrollBar_right: true
  26. URxvt.scrollBar_floating: true
  27. URxvt.scrollstyle: plain
  28. URxvt.saveLines: 5000
  29. !fonts
  30. URxvt.font:xft:Bitstream Vera Sans Mono-10,xft:WenQuanYi Bitmap Song-10
  31. URxvt.boldFont:xft:Bitstream Vera Sans Mono-10:Bold,xft:WenQuanYi Bitmap Song-10:Bold
  32. !Input Method
  33. URxvt.inputMethod: fcitx
  34. URxvt.preeditType: OverTheSpot
  35. URxvt.imFont: WenQuanYi Bitmap Song
复制代码


此配置在openbox下可以输入中文,but移到fvwm,fluxbox,awesome等环境下都不行,何解?
发表于 2009-1-8 09:04:38 | 显示全部楼层
不关fvwm,fluxbox,awesome的事,看一下你输入法环境变量(不知道是不是这样说?)设置好了没有!!如:
  1. export XMODIFIERS="@im=SCIM"
  2. export GTK_IM_MODULE="scim"
  3. export QT_IM_MODULE="scim"
  4. export XMODIFIERS
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-1-8 09:49:10 | 显示全部楼层
用 scim-bridge 吧,以前一直设置
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export XMODIFIERS
后来换成 scim-bridge后就全好了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-8 10:44:13 | 显示全部楼层
谢谢两位
其实我是用的fcitx
只是配置文件的最后少了一句:
export XMODFIERS
奇怪的是在openbox中正常使用,而其他WM不行
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表