LinuxSir.cn,穿越时空的Linuxsir!

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

URxvtd 加 URxvtc模式 urxvtc启动速度和光标跟随不能兼得

[复制链接]
发表于 2009-2-16 12:01:22 | 显示全部楼层 |阅读模式
请兄弟们帮忙测试一下是不是也是这个情况



  1. !! Xft setting
  2. Xft.dpi:75
  3. Xft.antialias:1
  4. Xft.hinting:1
  5. Xft.hintstyle:hintfull
  6. Xft.rgba:rgb

  7. ! ===========================================================================
  8. ! XTerm resources

  9. ! Look similar to the Linux Console
  10. ! ---------------------------------------------------------------------------
  11. XTerm*background: black
  12. XTerm*foreground: white
  13. XTerm*cursorColor: yellow
  14. XTerm*Title: XTerm
  15. XTerm*scrollBar: false
  16. XTerm*saveLines: 5000
  17. XTerm*geometry: 160x50+10+10
  18. XTerm*font: -b&h-luxi mono-medium-r-normal--14-164-75-75-m-100-iso8859-1

  19. ! Colors similar to those used in Linux Console (ttyX)
  20. ! ---------------------------------------------------------------------------
  21. XTerm*color0: rgb:0/0/0
  22. XTerm*color1: rgb:cc/00/00
  23. XTerm*color2: rgb:00/cc/00
  24. XTerm*color3: #bd5e01
  25. XTerm*color4: rgb:00/00/cc
  26. XTerm*color5: rgb:cc/00/cc
  27. XTerm*color6: rgb:00/cc/cc
  28. XTerm*color7: rgb:aa/aa/aa
  29. XTerm*color8: rgb:33/33/33
  30. XTerm*color9: rgb:ff/00/00
  31. XTerm*color10: rgb:00/ff/00
  32. XTerm*color11: rgb:ff/ff/00
  33. XTerm*color12: rgb:00/00/ff
  34. XTerm*color13: rgb:ff/00/ff
  35. XTerm*color14: rgb:00/ff/ff
  36. XTerm*color15: rgb:ff/ff/ff

  37. ! ===========================================================================
  38. ! URxvt resources

  39. ! Look similar to the Linux Console, with transparency
  40. ! ---------------------------------------------------------------------------
  41. URxvt.background: black
  42. URxvt.foreground: white
  43. URxvt.shading: 30
  44. URxvt.tintColor: white
  45. URxvt.inheritPixmap: true

  46. URxvt.geometry: 95x35+10+10
  47. URxvt.scrollBar:true
  48. URxvt.scrollBar_right:true
  49. URxvt.scrollBar_floating:true
  50. URxvt.scrollTtyOutput:true
  51. URxvt.scrollTtyKeypress:true
  52. URxvt.utmpInhibit:true
  53. URxvt.saveLines:5000
  54. ! ---------------------------------------------------------------------------
  55. URxvt.font:xft:Luxi Mono-12,xft:Microsoft YaHei-12
  56. URxvt.boldFont:xft:Luxi Mono-12:Bold,xft:Mircosoft YaHei-12:Bold
  57. URxvt.inputMethod:$XIM
  58. ! URxvt.imLocale: zh_CN.UTF-8
  59. !! 若是设置输入法字体,则输入法不能光标跟随
  60. ! URxvt.imFont:xft:SimSun-12
  61. !下面这个不开启则启动慢..开启飞快,只可惜输入发不能光标跟随了,囧
  62. URxvt.preeditType:Root
  63. ! 解决光标跟随两个问题,启动很慢
  64. ! URxvt.preeditType:OverTheSpot
  65. !下面这句添加多TAB支持
  66. ! Rxvt.perl-ext-common:default,tabbed

  67. ! Colors similar to Linux console
  68. ! ---------------------------------------------------------------------------
  69. URxvt.color0: rgb:0/0/0
  70. URxvt.color1: rgb:cc/00/00
  71. URxvt.color2: rgb:00/cc/00
  72. URxvt.color3: #bd5e01
  73. URxvt.color4: rgb:00/00/cc
  74. URxvt.color5: rgb:cc/00/cc
  75. URxvt.color6: rgb:00/cc/cc
  76. URxvt.color7: rgb:aa/aa/aa
  77. URxvt.color8: rgb:33/33/33
  78. URxvt.color9: rgb:ff/00/00
  79. URxvt.color10: rgb:00/ff/00
  80. URxvt.color11: rgb:ff/ff/00
  81. URxvt.color12: rgb:00/00/ff
  82. URxvt.color13: rgb:ff/00/ff
  83. URxvt.color14: rgb:00/ff/ff
  84. URxvt.color15: rgb:ff/ff/ff
复制代码
 楼主| 发表于 2009-2-16 12:02:16 | 显示全部楼层
!! Xft setting
Xft.dpi:75
Xft.antialias:1
Xft.hinting:1
Xft.hintstyle:hintfull
Xft.rgba:rgb

! ===========================================================================
! XTerm resources

! Look similar to the Linux Console
! ---------------------------------------------------------------------------
XTerm*background: black
XTerm*foreground: white
XTerm*cursorColor: yellow
XTerm*Title: XTerm
XTerm*scrollBar: false
XTerm*saveLines: 5000
XTerm*geometry: 160x50+10+10

! Fonts for different resolutions and character encodings
! By default English encoding is set. How to set different encodings:
! - Polish encoding: apply "-iso8859-2" at the end of the font string
! ---------------------------------------------------------------------------
! Englsh encoding
! 640x480
!XTerm*font: -misc-fixed-medium-r-normal-*-12-*
! 800x600
!XTerm*font: -misc-fixed-medium-r-normal-*-13-*
! 1024x768
! XTerm*font: -misc-fixed-medium-r-normal-*-14-*
! 1024x768
XTerm*font: -b&h-luxi mono-medium-r-normal--14-164-75-75-m-100-iso8859-1
! 1152x864
!XTerm*font: -misc-fixed-medium-r-normal-*-14-*
! 1280x1024
!XTerm*font: -misc-fixed-medium-r-normal-*-18-*

! Colors similar to those used in Linux Console (ttyX)
! ---------------------------------------------------------------------------
XTerm*color0: rgb:0/0/0
XTerm*color1: rgb:cc/00/00
XTerm*color2: rgb:00/cc/00
XTerm*color3: #bd5e01
XTerm*color4: rgb:00/00/cc
XTerm*color5: rgb:cc/00/cc
XTerm*color6: rgb:00/cc/cc
XTerm*color7: rgb:aa/aa/aa
XTerm*color8: rgb:33/33/33
XTerm*color9: rgb:ff/00/00
XTerm*color10: rgb:00/ff/00
XTerm*color11: rgb:ff/ff/00
XTerm*color12: rgb:00/00/ff
XTerm*color13: rgb:ff/00/ff
XTerm*color14: rgb:00/ff/ff
XTerm*color15: rgb:ff/ff/ff

! Specific settings for QuakeConsole (Alt+`), to get better effect
! ---------------------------------------------------------------------------
! 800x600
!QuakeConsoleNeedsUniqueName*internalBorder: 0
! 1024x768
!QuakeConsoleNeedsUniqueName*internalBorder: 0
! 1152x864
!QuakeConsoleNeedsUniqueName*internalBorder: 1
! 1280x1024
!QuakeConsoleNeedsUniqueName*internalBorder: 0

! ===========================================================================
! URxvt resources

! Look similar to the Linux Console, with transparency
! ---------------------------------------------------------------------------
URxvt.background: black
URxvt.foreground: white
URxvt.shading: 30
URxvt.tintColor: white
URxvt.inheritPixmap: true

URxvt.geometry: 95x35+10+10
URxvt.scrollBar:true
URxvt.scrollBar_right:true
URxvt.scrollBar_floating:true
URxvt.scrollTtyOutput:true
URxvt.scrollTtyKeypress:true
URxvt.utmpInhibit:true
URxvt.saveLines:5000
! ---------------------------------------------------------------------------
URxvt.font:xftuxi Mono-12,xft:Microsoft YaHei-12
URxvt.boldFont:xftuxi Mono-12:Bold,xft:Mircosoft YaHei-12:Bold
URxvt.inputMethodXIM
! URxvt.imLocale: zh_CN.UTF-8
!! 若是设置输入法字体,则输入法不能光标跟随
! URxvt.imFont:xft:SimSun-12
!下面这个不开启则启动慢..开启飞快,只可惜输入发不能光标跟随了,囧
URxvt.preeditType:Root
! 解决光标跟随两个问题,启动很慢
! URxvt.preeditType:OverTheSpot
!下面这句添加多TAB支持
Rxvt.perl-ext-common:default,tabbed

! Colors similar to Linux console
! ---------------------------------------------------------------------------
URxvt.color0: rgb:0/0/0
URxvt.color1: rgb:cc/00/00
URxvt.color2: rgb:00/cc/00
URxvt.color3: #bd5e01
URxvt.color4: rgb:00/00/cc
URxvt.color5: rgb:cc/00/cc
URxvt.color6: rgb:00/cc/cc
URxvt.color7: rgb:aa/aa/aa
URxvt.color8: rgb:33/33/33
URxvt.color9: rgb:ff/00/00
URxvt.color10: rgb:00/ff/00
URxvt.color11: rgb:ff/ff/00
URxvt.color12: rgb:00/00/ff
URxvt.color13: rgb:ff/00/ff
URxvt.color14: rgb:00/ff/ff
URxvt.color15: rgb:ff/ff/ff
回复 支持 反对

使用道具 举报

发表于 2009-2-16 15:23:06 | 显示全部楼层
设置 imfont
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-16 15:51:07 | 显示全部楼层
Post by wd_afei;1948326
设置 imfont


URxvt.imFont
需要设两个字体么?
再添加下面这两句的话还是不能光标跟随


URxvt.imLocale:zh_CN.UTF-8
! URxvt.imFont:xft:SimSun-12
!! 若是设置输入法字体,则输入法不能光标跟随
回复 支持 反对

使用道具 举报

发表于 2009-2-16 17:04:49 | 显示全部楼层
我只设置过 imfont,你设置了在 term 下面起动看看,我记得如果有问题会有提示。
回复 支持 反对

使用道具 举报

发表于 2009-2-16 22:49:06 | 显示全部楼层
! Input Method set
URxvt.inputMethod: fcitx
URxvt.preeditType: OverTheSpot
URxvt.imFont: -microsoft-microsoft yahei-medium-r-normal--0-0-0-0-p-0-iso10646-1

即可,imFont的字体配置可以用xlsfonts命令获取。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 00:01:45 | 显示全部楼层
Post by oceanboo;1948492
! Input Method set
URxvt.inputMethod: fcitx
URxvt.preeditType: OverTheSpot
URxvt.imFont: -microsoft-microsoft yahei-medium-r-normal--0-0-0-0-p-0-iso10646-1

即可,imFont的字体配置可以用xlsfonts命令获取。


我按下面步骤 添加X核心字体
1.cp 字体
2.字体可读
3.mkfontscale mkfontdir
4.重起X

这也xlsfonts里面还是看不到我想添加的字体啊 怎么回事呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 00:22:29 | 显示全部楼层
Post by Avast;1948518
我按下面步骤 添加X核心字体
1.cp 字体
2.字体可读
3.mkfontscale mkfontdir
4.重起X

这也xlsfonts里面还是看不到我想添加的字体啊 怎么回事呢?



不管xlsfonts里有没有
按X核心字体设置
URxvt.imFont:-misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1

情况算好点了

不过也是时好时坏的 我这边输入法一直就有问题
scim只能gtk程序中使用
URxvt emacs xterm qterm都白搭

fcitx 在emacsclient -c中无法使用

不过在我这看就是scim垃圾
网上这个设置那个设置的一堆堆的
这么弄那么弄 各个环境就没个一样的!
到最后也没弄出个样子来!!
回复 支持 反对

使用道具 举报

发表于 2009-2-17 10:13:01 | 显示全部楼层
在我这里SCIM很听话呀!

~/.Xdefault :
  1. urxvt*terminfo:   /usr/share/terminfo/r/rxvt-unicode
  2. urxvt*background:   #4D4D4D
  3. urxvt*foreground:   #ffffff
  4. urxvt*cursorColor:  #ffffff
  5. ! Fonts
  6. urxvt*font:             xft:WenQuanYi Zen Hei Mono:size=10
  7. urxvt*boldFont:         xft:WenQuanYi Zen Hei Mono:size=10
  8. urxvt*dynamicColors:       on
  9. urxvt*highlightSelection:  true
  10. urxvt*eightBitInput:       true
  11. urxvt*metaSendsEscape:     true
  12. ! Other settings
  13. urxvt*locale:              true
  14. urxvt*internalBorder:      0
  15. urxvt*borderWidth:         0
  16. urxvt*modifier:            alt
  17. urxvt*scrollBar:           true
  18. urxvt*titeInhibit:         true
  19. urxvt*saveLines:           2048
  20. urxvt*backarrowKeyIsErase: true
  21. urxvt*reverseVideo:        false
  22. urxvt*geometry:            83x22+70+0
  23. urxvt*troughColor:         white
  24. urxvt*transparent:         #4D4D4D
  25. urxvt*shading:             100
  26. urxvt*tintColor:           #4D4D4D
  27. urxvt*inheritPixmap:       true
  28. urxvt*saveLines:           65535
  29. urxvt*cursorBlink:         true
  30. urxvt*internalBorder:      0
  31. urxvt*scrollstyle:      plain
  32. urxvt*secondaryScroll:  true
  33. urxvt*scrollColor:      #4D4D4D
  34. urxvt*internalBorder:   0
  35. URxvt*termName: rxvt
  36. URxvt*perl-ext-common: selection-autotransform,matcher
  37. URxvt*urlLauncher: opera -newpage
  38. URxvt*matcher.button: 1
  39. URxvt*preeditType: Root
复制代码

~/.xinitrc
  1. export XMODIFIERS="@im=SCIM"
  2. export GTK_IM_MODULE="scim"
  3. export QT_IM_MODULE="scim"
  4. export XMODIFIERS
  5. Xmetisse -ac -depth 24 -geometry 1280x800 -dpi 96 :1 >& ~/.Xmetisse-log &
  6. metisse-start-fvwm >& ~/.compositor-log
  7. killall Xmetisse
复制代码

请重点检查你.xinitrc中关于输入法的设置!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-17 16:21:58 | 显示全部楼层
Post by Hosanna;1948604
在我这里SCIM很听话呀!

~/.Xdefault :
  1. urxvt*terminfo:   /usr/share/terminfo/r/rxvt-unicode
  2. urxvt*background:   #4D4D4D
  3. urxvt*foreground:   #ffffff
  4. urxvt*cursorColor:  #ffffff

  5. ! Fonts
  6. urxvt*font:             xft:WenQuanYi Zen Hei Mono:size=10
  7. urxvt*boldFont:         xft:WenQuanYi Zen Hei Mono:size=10

  8. urxvt*dynamicColors:       on
  9. urxvt*highlightSelection:  true
  10. urxvt*eightBitInput:       true
  11. urxvt*metaSendsEscape:     true

  12. ! Other settings
  13. urxvt*locale:              true
  14. urxvt*internalBorder:      0
  15. urxvt*borderWidth:         0
  16. urxvt*modifier:            alt
  17. urxvt*scrollBar:           true
  18. urxvt*titeInhibit:         true
  19. urxvt*saveLines:           2048
  20. urxvt*backarrowKeyIsErase: true
  21. urxvt*reverseVideo:        false

  22. urxvt*geometry:            83x22+70+0
  23. urxvt*troughColor:         white
  24. urxvt*transparent:         #4D4D4D
  25. urxvt*shading:             100
  26. urxvt*tintColor:           #4D4D4D
  27. urxvt*inheritPixmap:       true
  28. urxvt*saveLines:           65535
  29. urxvt*cursorBlink:         true
  30. urxvt*internalBorder:      0

  31. urxvt*scrollstyle:      plain
  32. urxvt*secondaryScroll:  true

  33. urxvt*scrollColor:      #4D4D4D


  34. urxvt*internalBorder:   0

  35. URxvt*termName: rxvt

  36. URxvt*perl-ext-common: selection-autotransform,matcher
  37. URxvt*urlLauncher: opera -newpage
  38. URxvt*matcher.button: 1
  39. URxvt*preeditType: Root
复制代码


~/.xinitrc
  1. export XMODIFIERS="@im=SCIM"
  2. export GTK_IM_MODULE="scim"
  3. export QT_IM_MODULE="scim"
  4. export XMODIFIERS

  5. Xmetisse -ac -depth 24 -geometry 1280x800 -dpi 96 :1 >& ~/.Xmetisse-log &
  6. metisse-start-fvwm >& ~/.compositor-log
  7. killall Xmetisse
复制代码


请重点检查你.xinitrc中关于输入法的设置!!


SCIM 的问题解决了 就是它的配置不跟人一样

原来我想同时要
URxvt.preeditType:OverTheSpot
还要启动速度快

现在我想开了 别折腾自己了 设成Root了事
回复 支持 反对

使用道具 举报

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

本版积分规则

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