ubuntu 11.10 下XTerm的配置(可显示和输入中文)

来源:互联网 发布:win10的windows键 编辑:程序博客网 时间:2024/05/17 22:41
打开/etc/X11/app-defaults/XTerm,在后面添加以下代码

Xft.dpi:96   xpdf.title: PDF   XTerm*faceSize: 10   XTerm*faceSize1: 10   XTerm*faceSize2: 10   XTerm*faceSize3: 10   XTerm*faceSize4: 10   XTerm*faceSize5: 10   XTerm*faceSize6: 10   XTerm*jumpScroll: true     xterm.termName: xterm-256color  xterm.geometry: 80x36  xterm*scrollBar: false  xterm*rightScrollBar: true  xterm*loginshell: true  xterm*cursorBlink: true  xterm*background:   black  xterm*foreground:   gray  xterm.borderLess: true  xterm.cursorBlink: true  xterm*colorUL: yellow  xterm*colorBD: white     !fix alt key input  xterm*eightBitInput: false  xterm*altSendsEscape: true !mouse selecting to copy, ctrl-v to paste  !Ctrl p to print screen content to file  XTerm*VT100.Translations: #override \        Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\        <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\        Ctrl <KeyPress> P: print() \n    !font and locale  !xterm*locale: true  !xterm.utf8:     true  !xterm*utf8Title: truexterm*fontMenu*fontdefault*Label: Default  xterm*faceName:DejaVu Sans Mono:antialias=True:pixelsize=16  !xterm*faceName: monofur:antialias=True:pixelsize=20  xter*boldFont: Bitstream Vera Sans Mono:style=Bold:pixelsize=15  xterm*faceNameDoublesize:WenQuanYi Zen Hei:antialias=True:pixelsize=15  xterm*xftAntialias: true  xterm.cjkWidth:true  XTerm*inputMethod: ibus XTerm*preeditType: Root  

上面默认安装了WenQuanYi Zen Hei中文字体以及安装了ibus输入法,最好先在语言支持中安装中文支持

以上XTerm的设置在有些地方不支持鼠标滚轮滚屏,不过可以用方向键和pagedown,pageup来翻页。而对于复制和粘贴,选择文字时已复制,Ctrl+v即可粘贴,我发现这个设置重装后有时会不管用,只能按鼠标中标粘贴,不知为何。其他快捷请上网自己搜。

原创粉丝点击