xterm 的配置

/etc/X11/app-defaults/XTerm

xterm -sl   2000   保存的行数

两个关于xterm 的配置,

xterm FAQ

http://invisible-island.net/xterm/xterm.faq.html

 

这一个只是中文显示正常,至少在我的机器上是。

但是xterm 的一些快捷键是默认的,有时不合习惯

#XTerm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1 XTerm*font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1 XTerm*wideFont: -misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1 XTerm*saveLines: 4096 XTerm*scrollbar: yes 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

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#XTerm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1
XTerm*font:  -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
XTerm*wideFont: -misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1
XTerm*saveLines: 4096
XTerm*scrollbar: yes

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
!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
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*fontMenu*fontdefault*Label: Default
xterm*xftAntialias: true
xterm*cjkWidth:false 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 

 

好像xterm 不支持拖动滚屏,如果想要选中的东西多过一个屏幕

那可以这样:左键点击进行初始定位,然后右键点击,则两次点击中间的会被选中

带滚屏的复制:
右键点文字里面的任意地方,右键到文字开头,再在文字结尾点右键。过程中可以滚屏。

 

这一个除了字体正常外,对快捷键做了调整

Control+Shift+v (下面简写成C-S-v)粘贴

 鼠标选中  就是  复制 

Control+Shift+c  也是复制

Shift+上下键,滚屏

鼠标中键粘贴

还有一些不知所去的快捷键,都复制在下面了

 

 !look and feel 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 !鼠标选中,复制 <BtnUp> 左键单击 !c-s-c 复制(其实有了鼠标选中复制,没必要要这个,习惯保留) !c-s-v 粘贴 !鼠标中键 粘贴<Btn2Down> XTerm*VT100.Translations: #override / Ctrl Shift <KeyPress> C: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/ <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/ Ctrl Shift <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/ <Btn2Down> : insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/ <Key>Insert: string(/001) /n/ Shift <Key>Up: scroll-back(1,lines) /n/ Shift <Key>Down: scroll-forw(1,lines) /n/ Shift <Key>Right: string(0x1b) string("f") /n/ Shift <Key>Left: string(0x1b) string("b") /n/ Shift <Key>Delete: string(0x1b) string(0x08) /n/ Shift <Key>Tab: string(0x1b) string("*") /n/ <Key>0x1000FF0D: scroll-back(1,page) /n/ <Key>0x1000FF0E: scroll-forw(1,page) /n/ <Key>0x1000FF09: string(/010) /n/ <Key>0x1000FF0A: string(/005) /n/ <Key>Select: select-start() /n/ <Key>0x1000FF02: select-end(PRIMARY,CUT_BUFFER0) /n/ Meta <Key>0x1000FF02: select-end(CLIPBOARD) /n/ <Key>0x1000FF04: insert-selection(PRIMARY,CUT_BUFFER0) /n/ Meta <Key>0x1000FF04: insert-selection(CLIPBOARD) /n/ <Key>F1: string(0x1b) string("OP") /n/ <Key>F2: string(0x1b) string("OQ") /n/ <Key>F3: string(0x1b) string("OR") /n/ <Key>F4: string(0x1b) string("OS") /n/ <Key>F5: string(0x1b) string("OA") /n/ <Key>F11: string(0x1b) string("[23~") /n/ <Key>F12: string(0x1b) string("[24~") /n/ <Key>KP_0: string(0x1b) string("Op") /n/ <Key>KP_1: string(0x1b) string("Oq") /n/ <Key>KP_2: string(0x1b) string("Or") /n/ <Key>KP_3: string(0x1b) string("Os") /n/ <Key>KP_4: string(0x1b) string("Ot") /n/ <Key>KP_5: string(0x1b) string("Ou") /n/ <Key>KP_Divide: string(0x1b) string("OP") /n/ <Key>KP_Multiply: string(0x1b) string("[29~") /n/ <Key>KP_Enter: string(0x1b) string("OM") /n/ <Key>KP_Subtract: string(0x1b) string("Om") /n/ <Key>KP_Add: string(0x1b) string("Ol") /n/ <Key>KP_Decimal: string(0x1b) string("On") /n/ !<Btn1Down>: select-start() /n/ !<Btn1Motion>: select-extend() /n/ !<Btn1Up>: select-end(PRIMARY,CUT_BUFFER0) /n/ !font and locale xterm*locale: true xterm.utf8: true xterm*utf8Title: true xterm*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:ZhunYuan:antialias=True:pixelsize=15 xterm*xftAntialias: true xterm.cjkWidth:true XTerm*preeditType: Root

!!!!!!!!!!!!!!!!!!为便于复制,如下代码同上

!look and feel
 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
 !鼠标选中,复制 <BtnUp> 左键单击
 !c-s-c 复制(其实有了鼠标选中复制,没必要要这个,习惯保留)
 !c-s-v 粘贴
 !鼠标中键  粘贴<Btn2Down>
 XTerm*VT100.Translations: #override /
         Ctrl Shift <KeyPress> C:  select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/
         <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/
         Ctrl Shift <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/
         <Btn2Down> : insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) /n/
         <Key>Insert:            string(/001) /n/
         Shift <Key>Up:          scroll-back(1,lines) /n/
         Shift <Key>Down:        scroll-forw(1,lines) /n/
         Shift <Key>Right:       string(0x1b) string("f") /n/
         Shift <Key>Left:        string(0x1b) string("b") /n/
         Shift <Key>Delete:      string(0x1b) string(0x08) /n/
         Shift <Key>Tab:         string(0x1b) string("*") /n/
         <Key>0x1000FF0D:        scroll-back(1,page) /n/
         <Key>0x1000FF0E:        scroll-forw(1,page) /n/
         <Key>0x1000FF09:        string(/010) /n/
         <Key>0x1000FF0A:        string(/005) /n/
         <Key>Select:            select-start() /n/
         <Key>0x1000FF02:        select-end(PRIMARY,CUT_BUFFER0) /n/
         Meta <Key>0x1000FF02:   select-end(CLIPBOARD) /n/
         <Key>0x1000FF04:        insert-selection(PRIMARY,CUT_BUFFER0) /n/
         Meta <Key>0x1000FF04:   insert-selection(CLIPBOARD) /n/
         <Key>F1:                string(0x1b) string("OP") /n/
         <Key>F2:                string(0x1b) string("OQ") /n/
         <Key>F3:                string(0x1b) string("OR") /n/
         <Key>F4:                string(0x1b) string("OS") /n/
         <Key>F5:                string(0x1b) string("OA") /n/
         <Key>F11:               string(0x1b) string("[23~") /n/
         <Key>F12:               string(0x1b) string("[24~") /n/
         <Key>KP_0:              string(0x1b) string("Op") /n/
         <Key>KP_1:              string(0x1b) string("Oq") /n/
         <Key>KP_2:              string(0x1b) string("Or") /n/
         <Key>KP_3:              string(0x1b) string("Os") /n/
         <Key>KP_4:              string(0x1b) string("Ot") /n/
         <Key>KP_5:              string(0x1b) string("Ou") /n/
         <Key>KP_Divide:         string(0x1b) string("OP") /n/
         <Key>KP_Multiply:       string(0x1b) string("[29~") /n/
         <Key>KP_Enter:          string(0x1b) string("OM") /n/
         <Key>KP_Subtract:       string(0x1b) string("Om") /n/
         <Key>KP_Add:            string(0x1b) string("Ol") /n/
         <Key>KP_Decimal:        string(0x1b) string("On") /n/
     !<Btn1Down>:             select-start() /n/
         !<Btn1Motion>:           select-extend() /n/
         !<Btn1Up>:               select-end(PRIMARY,CUT_BUFFER0) /n/


 !font and locale
 xterm*locale: true
 xterm.utf8:     true
 xterm*utf8Title: true
 xterm*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:ZhunYuan:antialias=True:pixelsize=15
 xterm*xftAntialias: true
 xterm.cjkWidth:true
 XTerm*preeditType: Root

 

你可能感兴趣的:(String,OS,File,buffer,input,UP)