XTerm 和粗体文本

XTerm 和粗体文本

这是我的 Xterm 配置:

XTerm*saveLines: 512
XTerm*reverseVideo: false
XTerm*reverseWrap: true
XTerm*fullCursor: true
XTerm*scrollTtyOutput: on
XTerm*scrollKey: on
XTerm*eightBitInput: false
XTerm*pointerColor: white
XTerm*pointerShape: left_ptr
XTerm*charClass: 37:48,45-47:48,58:48,64:48,126:48
XTerm*cursorColor: rgb:aa/aa/aa 
XTerm*cursorColor2: black

XTerm*color0:  rgb:71/71/71 
XTerm*color1:  rgb:cd/00/00
XTerm*color2:  rgb:b4/cd/00
XTerm*color3:  rgb:cd/cd/00
XTerm*color4:  rgb:71/71/71
XTerm*color5:  rgb:cd/00/cd
XTerm*color6:  rgb:00/cd/cd
XTerm*color7:  rgb:e5/e5/e5
XTerm*color8:  rgb:4c/4c/4c
XTerm*color9:  rgb:ff/00/00
XTerm*color10:  rgb:55/ac/55
XTerm*color11:  rgb:ff/ff/00
XTerm*color12:  rgb:46/82/b4
XTerm*color13:  rgb:ff/00/ff
XTerm*color14:  rgb:00/ff/ff
XTerm*color15:  rgb:ff/ff/ff


XTerm*colorBD: white
XTerm*colorUL: SkyBlue
XTerm*colorBDMode: on
XTerm*colorULMode: on
XTerm*underLine: on
XTerm*background: rgb:30/0a/24
XTerm*foreground: white 
XTerm*font: -*-monospace-medium-r-normal-9-140-*-*-m-*-* 
XTerm*font1: 5x7
XTerm*font2: 6x10
XTerm*font3: fixed
XTerm*font4: 9x15

XTerm*ScrollBar.Background: gray
XTerm*ScrollBar.thickness: 0
XTerm*ScrollBar.foreground: gray
XTerm*ScrollBar: false
XTerm*ScrollBar.DrawBorder: false
XTerm*loginShell: true



XTerm*faceName: Mono
XTerm*faceSize: 9

有人能说一下是否可以将一些文本设为粗体,例如我配置中的 color1 的颜色?我试过了XTerm*color1: rgb:cd/00/00 bold,但是没有用。

答案1

我不确定这是否回答了您的问题,但它回答了我在谷歌搜索并发现您的问题时所遇到的问题。

您可以使文本加粗、加下划线、反转视频和闪烁,并进行着色,此外加粗、加下划线、反转或闪烁。例如,你已经

XTerm*colorBD: white
XTerm*colorUL: SkyBlue
XTerm*colorBDMode: on
XTerm*colorULMode: on

哪个取代加粗并加下划线,并配上颜色。要获得加粗、加下划线和颜色同时, 添加

XTerm*veryBoldColors: 6

veryBoldColors资源的文档man xterm

veryBoldColors (class VeryBoldColors)
  Specifies  whether  to  combine  video  attributes with colors
  specified by  colorBD,  colorBL,  colorRV  and  colorUL.   The
  resource value is the sum of values for each attribute:
    1 for reverse,
    2 for underline,
    4 for bold and
    8 for blink.

  The default is “0”.

相关内容