LinuxSir.cn,穿越时空的Linuxsir!

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

xterm可以显示中文,但还有个问题!

[复制链接]
发表于 2005-5-17 16:23:59 | 显示全部楼层 |阅读模式
今天发现在xterm中按住Ctrl+右建选“Large”的时候可以正常显示中文
但每次都要重复这样的工作很麻烦,不知有什么样办法可以保存设置
下次打开的时候不用再重新设置?
发表于 2005-5-17 17:52:17 | 显示全部楼层
更改配置文件,忘了是什么文件了,我找找看
回复 支持 反对

使用道具 举报

发表于 2005-5-17 17:59:14 | 显示全部楼层
在/usr/X11R6/lib/X11/app-defaults/XTerm
忘了当初怎么改了。。。改好的
cat /usr/X11R6/lib/X11/app-defaults/XTerm
! $Xorg: XTerm.ad,v 1.3 2000/08/17 19:55:08 cpqbld Exp $
!
!
!
!
! $XTermId: XTerm.ad,v 1.61 2004/07/13 00:41:24 tom Exp $
! $XFree86: xc/programs/xterm/XTerm.ad,v 3.28 2004/07/13 00:41:24 dickey Exp $

*saveLines: 1024
*geometry: 64x24
*SimpleMenu*BackingStore: NotUseful
*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
*SimpleMenu*menuLabel.vertSpace:        100
*SimpleMenu*HorizontalMargins: 16
*SimpleMenu*Sme.height: 16

*SimpleMenu*Cursor: left_ptr

*mainMenu.Label:  Main Options
*mainMenu*securekbd*Label:  Secure Keyboard
*mainMenu*allowsends*Label:  Allow SendEvents
*mainMenu*redraw*Label:  Redraw Window
*mainMenu*logging*Label:  Log to File
*mainMenu*print*Label:  Print Window
*mainMenu*print-redir*Label:  Redirect to Printer
*mainMenu*8-bit control*Label: 8-Bit Controls
*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
*mainMenu*num-lock*Label: Alt/NumLock Modifiers
*mainMenu*meta-esc*Label: Meta Sends Escape
*mainMenu*delete-is-del*Label: Delete is DEL
*mainMenu*oldFunctionKeys*Label: Old Function-Keys
*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
*mainMenu*sunKeyboard*Label: VT220 Keyboard
*mainMenu*hpFunctionKeys*Label: HP Function-Keys
*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
*mainMenu*suspend*Label:  Send STOP Signal
*mainMenu*continue*Label:  Send CONT Signal
*mainMenu*interrupt*Label:  Send INT Signal
*mainMenu*hangup*Label:  Send HUP Signal
*mainMenu*terminate*Label:  Send TERM Signal
*mainMenu*kill*Label:  Send KILL Signal
*mainMenu*quit*Label:  Quit

*vtMenu.Label:  VT Options
*vtMenu*scrollbar*Label:  Enable Scrollbar
*vtMenu*jumpscroll*Label:  Enable Jump Scroll
*vtMenu*reversevideo*Label:  Enable Reverse Video
*vtMenu*autowrap*Label:  Enable Auto Wraparound
*vtMenu*reversewrap*Label:  Enable Reverse Wraparound
*vtMenu*autolinefeed*Label:  Enable Auto Linefeed
*vtMenu*appcursor*Label:  Enable Application Cursor Keys
*vtMenu*appkeypad*Label:  Enable Application Keypad
*vtMenu*scrollkey*Label:  Scroll to Bottom on Key Press
*vtMenu*scrollttyoutput*Label:  Scroll to Bottom on Tty Output
*vtMenu*allow132*Label: Allow 80/132 Column Switching
*vtMenu*cursesemul*Label:  Enable Curses Emulation
*vtMenu*visualbell*Label:  Enable Visual Bell
*vtMenu*poponbell*Label:  Enable Pop on Bell
*vtMenu*marginbell*Label:  Enable Margin Bell
*vtMenu*cursorblink*Label: Enable Blinking Cursor
*vtMenu*titeInhibit*Label:  Enable Alternate Screen Switching
*vtMenu*activeicon*Label: Enable Active Icon
*vtMenu*softreset*Label:  Do Soft Reset
*vtMenu*hardreset*Label:  Do Full Reset
*vtMenu*clearsavedlines*Label:  Reset and Clear Saved Lines
*vtMenu*tekshow*Label:  Show Tek Window
*vtMenu*tekmode*Label:  Switch to Tek Mode
*vtMenu*vthide*Label:  Hide VT Window
*vtMenu*altscreen*Label:  Show Alternate Screen

*fontMenu.Label:  VT Fonts
*fontMenu*fontdefault*Label:    Default
*fontMenu*font1*Label:  Unreadable
*VT100*font1:           nil2
*IconFont:              nil2
*fontMenu*font2*Label:  Tiny
*VT100*font2:           5x7
*fontMenu*font3*Label:  Small
*VT100*font3:           6x10
*fontMenu*font4*Label:  Medium
*VT100*font4:           7x13
*fontMenu*font5*Label:  Large
*VT100*font5:           9x15
*fontMenu*font6*Label:  Huge
*VT100*font6:           10x20
*fontMenu*fontescape*Label:     Escape Sequence
*fontMenu*fontsel*Label:        Selection
!fontescape and fontsel overridden by application
*fontMenu*font-linedrawing*Label: Line-Drawing Characters
*fontMenu*font-doublesize*Label: Doublesized Characters
*fontMenu*font-loadable*Label:  VT220 Soft Fonts
*fontMenu*render-font*Label:    TrueType Fonts
*fontMenu*utf8-mode*Label:      UTF-8

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font:  -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1

*tekMenu.Label:  Tek Options
*tekMenu*tektextlarge*Label:  Large Characters
*tekMenu*tektext2*Label:  #2 Size Characters
*tekMenu*tektext3*Label:  #3 Size Characters
*tekMenu*tektextsmall*Label:  Small Characters
*tekMenu*tekpage*Label:  PAGE
*tekMenu*tekreset*Label:  RESET
*tekMenu*tekcopy*Label:  COPY
*tekMenu*vtshow*Label:  Show VT Window
*tekMenu*vtmode*Label:  Switch to VT Mode
*tekMenu*tekhide*Label:  Hide Tek Window

*tek4014*fontLarge: 9x15
*tek4014*font2: 8x13
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-17 19:37:30 | 显示全部楼层
OK了,感谢fallen,把这行的字体替换掉就可了
*VT100.utf8Fonts.font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
回复 支持 反对

使用道具 举报

发表于 2005-5-18 01:53:52 | 显示全部楼层
xterm在locale为gbk时,当你输入中文时,输入的全是"gbk-0“!把locale修改成gb2312就好了,怎么办?
~/.Xresources的内容
XTerm*font: 8x16
XTerm*wideFont: -misc-simsun-medium-r-normal--14-*-*-*-*-*-iso10646-1
!XTerm*wideFont: -b&h-luxi mono-medium-r-normal-*-*-120-*-*-m-*-iso10646-1
XTerm.VT100.background: black
XTerm.VT100.foreground: white
XTerm*rightScrollBar: true
XTerm.cjkWidth: true

XTerm*internalBorder:  10
XTerm*highlightSelection:  true
XTerm*VT100*colorBDMode:  on
XTerm*VT100*colorBD:  blue
XTerm*VT100*colorULMode:  on
XTerm*VT100*colorUL:  magenta
XTerm.VT100.eightBitInput:  true
XTerm.VT100.eightBitOutput:  true
XTerm*scrollBar:  true
XTerm.VT100.titeInhibit:  true

XTerm.VT100*colorMode:  on
XTerm.VT100*dynamicColors:  on

! Uncomment this to use color for underline attribute
XTerm.VT100*colorULMode:  on
XTerm.VT100*underLine:  off

! Uncomment this to use color for the bold attribute
XTerm.VT100*colorBDMode: on

XTerm.VT100*color0: black
XTerm.VT100*color1: red3
XTerm.VT100*color2: green3
XTerm.VT100*color3: yellow3
XTerm.VT100*color4: blue3
XTerm.VT100*color5: magenta3
XTerm.VT100*color6: cyan3
XTerm.VT100*color7: gray90
XTerm.VT100*color8: gray30
XTerm.VT100*color9: red
XTerm.VT100*color10: green
XTerm.VT100*color11: yellow
XTerm.VT100*color12: blue
XTerm.VT100*color13: magenta
XTerm.VT100*color14: cyan
XTerm.VT100*color15: white
XTerm.VT100*colorUL: yellow
XTerm.VT100*colorBD: white

XTerm.VT100*cursorColor: lime green
XTerm*cursorBlink:   true
XTerm*cursorBlinkInterval:500
回复 支持 反对

使用道具 举报

发表于 2005-11-17 00:29:22 | 显示全部楼层
非常感谢!终于解决了XTerm的问题。 Ctrl+Lbutton确实麻烦 ^-^
回复 支持 反对

使用道具 举报

发表于 2006-1-5 14:17:21 | 显示全部楼层
问题解决了,非常感谢!
回复 支持 反对

使用道具 举报

发表于 2006-1-8 16:21:18 | 显示全部楼层
用rxvt-unicode吧!
回复 支持 反对

使用道具 举报

发表于 2006-7-27 15:16:42 | 显示全部楼层
添加下面一句话到~.Xdefaults文件就可以了。
xterm*VT100*font:  -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
回复 支持 反对

使用道具 举报

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

本版积分规则

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