xterm配置

以RHL6.9系统为例, 介绍一下xterm的配置。

安装

  1. 首先安装xterm
1
yum install xterm
  1. 配置文件:

    全局的配置文件是:

    • /etc/X11/Xresources

    用户配置文件是:

    • ~/.Xdefaults
    • ~/.Xresources

配置

  1. 设置一些配置如下说明:

    • *visualBell: BOOLEAN

    Changes system beep to make the windows background flicker

    • XTerm*saveLines: INTEGER

    The number of lines that do not clear the screen after the program exits

    • XTerm*background: COLOR

    The color of the background

    • XTerm*foreground: COLOR

    Color of highlighted text

    • XTerm*pointerColor: COLOR

    Color of the mouse pointer when it’s in front on the xterm window

    • XTerm*pointerColorBackground: white

    Border color around the mouse pointer

    • XTerm*cursorColor: COLOR

    Color of cursor

    • XTerm*pointerShape: SHAPE

    Sets mouse pointer’s appearance when over the xterm window
    Options: XTerm, left_ptr, bogosity, …

    • XTerm*font: FONT

    Sets the font
    Example: -adobe-courier-medium-r-normal14-140-75-75-m-90

  2. load 配置文件

1
xrdb ~/.Xresources
  1. 配置xterm的color schame
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
XTerm*background:  #000000
XTerm*foreground: #9f9f9f
XTerm*color0: #000000
XTerm*color1: #9e1828
XTerm*color2: #aece92
XTerm*color3: #968a38
XTerm*color4: #414171
XTerm*color5: #963c59
XTerm*color6: #418179
XTerm*color7: #bebebe
XTerm*color8: #666666
XTerm*color9: #cf6171
XTerm*color10: #c5f779
XTerm*color11: #fff796
XTerm*color12: #4186be
XTerm*color13: #cf9ebe
XTerm*color14: #71bebe
XTerm*color15: #ffffff