+ -
当前位置:首页 → 问答吧 → URxvtd 加 URxvtc模式 urxvtc启动速度和光标跟随不能兼得

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

时间:2009-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
XTerm*font: -b&h-luxi mono-medium-r-normal--14-164-75-75-m-100-iso8859-1

! 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

! ===========================================================================
! 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:xft:Luxi Mono-12,xft:Microsoft YaHei-12
URxvt.boldFont:xft:Luxi Mono-12:Bold,xft:Mircosoft YaHei-12:Bold
URxvt.inputMethod:$XIM
! 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

作者: Avast   发布时间: 2009-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:xft:Luxi Mono-12,xft:Microsoft YaHei-12
URxvt.boldFont:xft:Luxi Mono-12:Bold,xft:Mircosoft YaHei-12:Bold
URxvt.inputMethod:$XIM
! 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

作者: Avast   发布时间: 2009-02-16

设置 imfont

作者: wd_afei   发布时间: 2009-02-16

引用:
作者: wd_afei
设置 imfont
URxvt.imFont
需要设两个字体么?
再添加下面这两句的话还是不能光标跟随


引用:
URxvt.imLocale:zh_CN.UTF-8
! URxvt.imFont:xft:SimSun-12
!! 若是设置输入法字体,则输入法不能光标跟随

作者: Avast   发布时间: 2009-02-16

我只设置过 imfont,你设置了在 term 下面起动看看,我记得如果有问题会有提示。

作者: wd_afei   发布时间: 2009-02-16

! 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命令获取。

作者: oceanboo   发布时间: 2009-02-17

引用:
作者: oceanboo
! 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里面还是看不到我想添加的字体啊 怎么回事呢?

作者: Avast   发布时间: 2009-02-17

引用:
作者: Avast
我按下面步骤 添加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垃圾
网上这个设置那个设置的一堆堆的
这么弄那么弄 各个环境就没个一样的!
到最后也没弄出个样子来!!

作者: Avast   发布时间: 2009-02-17

在我这里SCIM很听话呀!

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

! Fonts
urxvt*font: xft:WenQuanYi Zen Hei Mono:size=10
urxvt*boldFont: xft:WenQuanYi Zen Hei Mono:size=10

urxvt*dynamicColors: on
urxvt*highlightSelection: true
urxvt*eightBitInput: true
urxvt*metaSendsEscape: true

! Other settings
urxvt*locale: true
urxvt*internalBorder: 0
urxvt*borderWidth: 0
urxvt*modifier: alt
urxvt*scrollBar: true
urxvt*titeInhibit: true
urxvt*saveLines: 2048
urxvt*backarrowKeyIsErase: true
urxvt*reverseVideo: false

urxvt*geometry: 83x22+70+0
urxvt*troughColor: white
urxvt*transparent: #4D4D4D
urxvt*shading: 100
urxvt*tintColor: #4D4D4D
urxvt*inheritPixmap: true
urxvt*saveLines: 65535
urxvt*cursorBlink: true
urxvt*internalBorder: 0

urxvt*scrollstyle: plain
urxvt*secondaryScroll: true

urxvt*scrollColor: #4D4D4D


urxvt*internalBorder: 0

URxvt*termName: rxvt

URxvt*perl-ext-common: selection-autotransform,matcher
URxvt*urlLauncher: opera -newpage
URxvt*matcher.button: 1
URxvt*preeditType: Root
~/.xinitrc
代码:
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export XMODIFIERS

Xmetisse -ac -depth 24 -geometry 1280x800 -dpi 96 :1 >& ~/.Xmetisse-log &
metisse-start-fvwm >& ~/.compositor-log
killall Xmetisse
请重点检查你.xinitrc中关于输入法的设置!!
上传的图像
capture.jpg (174.2 KB, 17 次查看)

作者: Hosanna   发布时间: 2009-02-17

引用:
作者: Hosanna
在我这里SCIM很听话呀!

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

! Fonts
urxvt*font: xft:WenQuanYi Zen Hei Mono:size=10
urxvt*boldFont: xft:WenQuanYi Zen Hei Mono:size=10

urxvt*dynamicColors: on
urxvt*highlightSelection: true
urxvt*eightBitInput: true
urxvt*metaSendsEscape: true

! Other settings
urxvt*locale: true
urxvt*internalBorder: 0
urxvt*borderWidth: 0
urxvt*modifier: alt
urxvt*scrollBar: true
urxvt*titeInhibit: true
urxvt*saveLines: 2048
urxvt*backarrowKeyIsErase: true
urxvt*reverseVideo: false

urxvt*geometry: 83x22+70+0
urxvt*troughColor: white
urxvt*transparent: #4D4D4D
urxvt*shading: 100
urxvt*tintColor: #4D4D4D
urxvt*inheritPixmap: true
urxvt*saveLines: 65535
urxvt*cursorBlink: true
urxvt*internalBorder: 0

urxvt*scrollstyle: plain
urxvt*secondaryScroll: true

urxvt*scrollColor: #4D4D4D


urxvt*internalBorder: 0

URxvt*termName: rxvt

URxvt*perl-ext-common: selection-autotransform,matcher
URxvt*urlLauncher: opera -newpage
URxvt*matcher.button: 1
URxvt*preeditType: Root
~/.xinitrc
代码:
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export XMODIFIERS

Xmetisse -ac -depth 24 -geometry 1280x800 -dpi 96 :1 >& ~/.Xmetisse-log &
metisse-start-fvwm >& ~/.compositor-log
killall Xmetisse
请重点检查你.xinitrc中关于输入法的设置!!
SCIM 的问题解决了 就是它的配置不跟人一样

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

现在我想开了 别折腾自己了 设成Root了事

作者: Avast   发布时间: 2009-02-17