Project

General

Profile

Xterm » History » Version 1

jun chen, 03/21/2025 11:55 PM

1 1 jun chen
# Xterm config method (By ZhengYu)
2
3
From:
4
https://blog.csdn.net/coffeesign/article/details/83449469?ops_request_misc&request_id&biz_id=102&utm_term=%E8%AE%B0%E5%BD%95%E4%B8%80%E4%B8%8Bxterm%E7%9A%84%E9%85%8D%E7%BD%AE&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-.pc_search_all_es&spm=1018.2226.3001.4187
5
6
How to use:
7
8
```
9
cp to ~/.Xdefaults
10
xrdb ~/.Xdefaults
11
```
12
13
```
14
!look and feel
15
xterm.termName: xterm-256color
16
xterm.geometry: 80x36
17
xterm*scrollBar: false
18
xterm*rightScrollBar: true
19
xterm*loginshell: true
20
xterm*cursorBlink: true
21
xterm*background:  black
22
xterm*foreground:  gray
23
xterm.borderLess: true
24
xterm.cursorBlink: true
25
xterm*colorUL: yellow
26
xterm*colorBD: white
27
!fix alt key input
28
xterm*eightBitInput: false
29
xterm*altSendsEscape: true
30
!print color and bold/underline attributes
31
xterm*printAttributes: 2
32
xterm*printerCommand: cat > ~/xtermdump
33
!mouse selecting to copy, ctrl-v to paste
34
XTerm*VT100.Translations: #override \
35
    Ctrl Shift <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
36
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
37
    Ctrl <KeyPress> P: print() \n\
38
    Ctrl Shift <KeyPress> C: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n
39
 
40
 
41
!font and locale
42
xterm*locale: true
43
xterm.utf8:     true
44
xterm*utf8Title: true
45
xterm*fontMenu*fontdefault*Label: Default
46
!xterm*faceName: Monaco:antialias=True:pixelsize=15
47
!xterm*faceName: monofur:antialias=True:pixelsize=20
48
!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
49
!xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
50
XTerm.vt100.faceName: DejaVu Sans Mono:antialias=True:pixelsize=15
51
 
52
XTerm.vt100.faceNameDoublesize:WenQuanYi Zen Hei Mono:antialias=True:pixelsize=15
53
xterm*xftAntialias: true
54
xterm*cjkWidth:false            !<-----谢谢xeoc指正 
55
!-- Tango color scheme
56
*xterm*color0: #2e3436
57
*xterm*color1: #cc0000
58
*xterm*color2: #4e9a06
59
*xterm*color3: #c4a000
60
*xterm*color4: #3465a4
61
*xterm*color5: #75507b
62
*xterm*color6: #0b939b
63
*xterm*color7: #d3d7cf
64
*xterm*color8: #555753
65
*xterm*color9: #ef2929
66
*xterm*color10: #8ae234
67
*xterm*color11: #fce94f
68
*xterm*color12: #729fcf
69
*xterm*color13: #ad7fa8
70
*xterm*color14: #00f5e9
71
*xterm*color15: #eeeeec
72
```