Yanyg - Software Engineer

Xterm Config

最近两年一直在用terminator做终端,用tmux复用,terminator自身的特性基本没用。最近想做点视频,要用到screenkey显示字符,screenkey在terminator工作不正常,在 xterm下工作正常,决定配置下xterm替换掉terminator。

man xterm 查看option,把默认配置写入到随便什么文件,比如.xterm.conf:

! Use a nice truetype font and size by default...
xterm*faceName: Source Code Pro, DejaVu Sans Mono Book
xterm*faceSize: 12

! Every shell is a login shell by default (for inclusion of all necessary environment variables)
xterm*loginshell: true

! I like a LOT of scrollback...
xterm*savelines: 100000

! double-click to select whole URLs :D
xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48

xterm*termName: xterm-24bits

! zenburn theme
xterm*foreground: rgb:f8/f8/f2
xterm*background: rgb:27/28/22
xterm*color0: rgb:27/28/22
xterm*color1: rgb:f9/26/72
xterm*color2: rgb:a6/e2/2e
xterm*color3: rgb:f4/bf/75
xterm*color4: rgb:66/d9/ef
xterm*color5: rgb:ae/81/ff
xterm*color6: rgb:a1/ef/e4
xterm*color7: rgb:f8/f8/f2
xterm*color8: rgb:75/71/5e
xterm*color9: rgb:f9/26/72
xterm*color10: rgb:a6/e2/2e
xterm*color11: rgb:f4/bf/75
xterm*color12: rgb:66/d9/ef
xterm*color13: rgb:ae/81/ff
xterm*color14: rgb:a1/ef/e4
xterm*color15: rgb:f9/f8/f5

! full screen, no  scrollbar
xterm*fullscreen: true
xterm*rightScrollBar: false
xterm*scrollBar: false

xterm*title: xterm
xterm*utf8Title: true

! stop output to terminal from jumping down to bottom of scroll again
xterm*scrollTtyOutput: false

xterm*utf8: true
xterm*utf8Fonts: true
xterm*eightBitInput: false
xterm*altSendsEscape: true

执行命令导入配置:

xrdb -merge ~/.xterm.conf