這裡介紹如何設定 xterm 虛擬終端機的配色,讓文字介面的命令列看起來也可以非常漂亮。

在 Linux 中若要讓命令列更好用,除了設定 xterm 的字型之外,佈景主題也是非常重要的一環,以下介紹 xterm 的終端機顏色設定方式。

XTerm 顏色設定檔

xterm 預設的終端機顏色設定一般是寫在 /etc/X11/app-defaults/XTerm-color 這個設定檔中,如果要更改顏色,可以直接從這裡修改,而其顏色的設定方式就是指定每一個 ANSI 色碼所對應的實際顏色,8 種 ANSI 色碼加上亮色系的色碼,總共有 16 種顏色。

! These are the 8 ANSI colors and their bright equivalents.  Depending on
! other resource settings, xterm may use the bright colors when displaying
! bold text (see the boldColors resource).
*VT100*color0: black
*VT100*color1: red3
*VT100*color2: green3
*VT100*color3: yellow3
*VT100*color4: blue2
*VT100*color5: magenta3
*VT100*color6: cyan3
*VT100*color7: gray90
*VT100*color8: gray50
*VT100*color9: red
*VT100*color10: green
*VT100*color11: yellow
*VT100*color12: rgb:5c/5c/ff
*VT100*color13: magenta
*VT100*color14: cyan
*VT100*color15: white

如果不想更動系統的設定檔,或是沒有權限修改,也可以從自己帳號的 ~/.Xresources 設定檔中加入顏色設定,設定方式跟 /etc/X11/app-defaults/XTerm-color 完全相同。

若要查看目前的設定,可以使用 appres 指令:

appres XTerm xterm | grep color

設定 16 種顏色的動作其實很繁瑣,建議可以從下面的佈景主題中挑選配好的顏色組合,既快速又方便。

XTerm 佈景主題

這裡我蒐集了許多 xterm 的佈景主題配色,這些設定都可以直接複製到 /etc/X11/app-defaults/XTerm-color 或個人的 ~/.Xresources 中使用。

Theme 01

! Theme 01
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:a8/a8/a8
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:a8/00/00
*VT100*color2:     rgb:00/a8/00
*VT100*color3:     rgb:a8/54/00
*VT100*color4:     rgb:00/00/a8
*VT100*color5:     rgb:a8/00/a8
*VT100*color6:     rgb:00/a8/a8
*VT100*color7:     rgb:a8/a8/a8
*VT100*color8:     rgb:54/50/54
*VT100*color9:     rgb:f8/54/50
*VT100*color10:    rgb:50/fc/50
*VT100*color11:    rgb:f8/fc/50
*VT100*color12:    rgb:50/54/f8
*VT100*color13:    rgb:f8/54/f8
*VT100*color14:    rgb:50/fc/f8
*VT100*color15:    rgb:f8/fc/f8

Theme 02

! Theme 02
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:7f/7f/7f
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:9e/18/28
*VT100*color2:     rgb:ae/ce/92
*VT100*color3:     rgb:96/8a/38
*VT100*color4:     rgb:41/41/71
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:41/81/79
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:cf/61/71
*VT100*color10:    rgb:c5/f7/79
*VT100*color11:    rgb:ff/f7/96
*VT100*color12:    rgb:41/86/be
*VT100*color13:    rgb:cf/9e/be
*VT100*color14:    rgb:71/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 02

! Theme 03
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:cf/cf/cf
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:e0/10/10
*VT100*color2:     rgb:20/ad/20
*VT100*color3:     rgb:d4/c2/4f
*VT100*color4:     rgb:23/1b/b8
*VT100*color5:     rgb:9c/38/85
*VT100*color6:     rgb:1d/bd/b8
*VT100*color7:     rgb:fe/fe/fe
*VT100*color8:     rgb:6a/6a/6a
*VT100*color9:     rgb:e8/3a/3d
*VT100*color10:    rgb:35/e9/56
*VT100*color11:    rgb:ff/ff/2f
*VT100*color12:    rgb:3a/53/f0
*VT100*color13:    rgb:e6/28/ba
*VT100*color14:    rgb:1c/f5/f5
*VT100*color15:    rgb:ff/ff/ff

Theme 04

! Theme 04
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:ff/ff/ff
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:d3/62/65
*VT100*color2:     rgb:ae/ce/91
*VT100*color3:     rgb:e7/e1/8c
*VT100*color4:     rgb:7a/7a/b0
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:41/81/79
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:ef/81/71
*VT100*color10:    rgb:e5/f7/79
*VT100*color11:    rgb:ff/f7/96
*VT100*color12:    rgb:41/86/be
*VT100*color13:    rgb:ef/9e/be
*VT100*color14:    rgb:71/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 05

! Theme 05
*VT100*background: rgb:ad/aa/ad
*VT100*foreground: rgb:00/00/00
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:64/0f/19
*VT100*color2:     rgb:63/79/6b
*VT100*color3:     rgb:ad/71/42
*VT100*color4:     rgb:4f/4f/89
*VT100*color5:     rgb:b2/5c/7c
*VT100*color6:     rgb:52/75/6b
*VT100*color7:     rgb:ad/aa/ad
*VT100*color8:     rgb:52/55/52
*VT100*color9:     rgb:a5/61/63
*VT100*color10:    rgb:ce/c2/63
*VT100*color11:    rgb:73/ae/70
*VT100*color12:    rgb:36/70/9f
*VT100*color13:    rgb:aa/82/9c
*VT100*color14:    rgb:51/89/89
*VT100*color15:    rgb:ff/ff/ef

Theme 06

! Theme 06
*VT100*background: rgb:be/be/be
*VT100*foreground: rgb:21/21/21
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:bf/72/76
*VT100*color2:     rgb:86/af/80
*VT100*color3:     rgb:96/8a/38
*VT100*color4:     rgb:36/73/b5
*VT100*color5:     rgb:9a/70/b2
*VT100*color6:     rgb:7a/be/cc
*VT100*color7:     rgb:db/db/db
*VT100*color8:     rgb:66/92/af
*VT100*color9:     rgb:e5/50/5f
*VT100*color10:    rgb:87/bc/87
*VT100*color11:    rgb:e0/d9/5c
*VT100*color12:    rgb:1b/85/d6
*VT100*color13:    rgb:ad/73/ba
*VT100*color14:    rgb:33/8e/aa
*VT100*color15:    rgb:f4/f4/f4

Theme 07

! Theme 07
*VT100*background: rgb:67/67/67
*VT100*foreground: rgb:ff/ff/ff
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:bf/46/46
*VT100*color2:     rgb:67/b2/5f
*VT100*color3:     rgb:cf/c4/4e
*VT100*color4:     rgb:51/60/83
*VT100*color5:     rgb:ca/6e/ff
*VT100*color6:     rgb:92/b2/f8
*VT100*color7:     rgb:d5/d5/d5
*VT100*color8:     rgb:00/00/00
*VT100*color9:     rgb:f4/8a/8a
*VT100*color10:    rgb:a5/d7/9f
*VT100*color11:    rgb:e1/da/84
*VT100*color12:    rgb:a2/bb/ff
*VT100*color13:    rgb:e2/b0/ff
*VT100*color14:    rgb:ba/cd/f8
*VT100*color15:    rgb:d5/d5/d5

Theme 08

! Theme 08
*VT100*background: rgb:10/10/10
*VT100*foreground: rgb:d3/d3/d3
*VT100*color0:     rgb:10/10/10
*VT100*color1:     rgb:cd/5c/5c
*VT100*color2:     rgb:2e/8b/57
*VT100*color3:     rgb:f0/e6/8c
*VT100*color4:     rgb:b0/c4/de
*VT100*color5:     rgb:ba/55/d3
*VT100*color6:     rgb:46/82/b4
*VT100*color7:     rgb:d3/d3/d3
*VT100*color8:     rgb:4d/4d/4d
*VT100*color9:     rgb:ff/6a/6a
*VT100*color10:    rgb:8f/bc/8f
*VT100*color11:    rgb:ff/fa/cd
*VT100*color12:    rgb:1e/90/ff
*VT100*color13:    rgb:db/70/93
*VT100*color14:    rgb:5f/9e/a0
*VT100*color15:    rgb:ff/ff/ff

Theme 09

! Theme 09
*VT100*background: rgb:1a/1a/1a
*VT100*foreground: rgb:d6/d6/d6
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:9e/18/28
*VT100*color2:     rgb:00/88/00
*VT100*color3:     rgb:96/8a/38
*VT100*color4:     rgb:41/41/71
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:41/81/79
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:cf/61/71
*VT100*color10:    rgb:7c/bc/8c
*VT100*color11:    rgb:ff/f7/96
*VT100*color12:    rgb:41/86/be
*VT100*color13:    rgb:cf/9e/be
*VT100*color14:    rgb:71/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 10

! Theme 10
*VT100*background: rgb:1a/1a/1a
*VT100*foreground: rgb:d6/d6/d6
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:98/56/5e
*VT100*color2:     rgb:66/82/5d
*VT100*color3:     rgb:96/91/76
*VT100*color4:     rgb:4d/65/85
*VT100*color5:     rgb:96/73/95
*VT100*color6:     rgb:5f/7f/7b
*VT100*color7:     rgb:b3/b3/b3
*VT100*color8:     rgb:73/73/73
*VT100*color9:     rgb:cf/a3/a9
*VT100*color10:    rgb:ca/f7/bb
*VT100*color11:    rgb:ff/f8/bc
*VT100*color12:    rgb:83/a3/be
*VT100*color13:    rgb:bb/a9/cf
*VT100*color14:    rgb:96/cc/cc
*VT100*color15:    rgb:ff/ff/ff

Theme 11

! Theme 11
*VT100*background: rgb:33/33/33
*VT100*foreground: rgb:ff/ff/ff
*VT100*color0:     rgb:33/33/33
*VT100*color8:     rgb:33/33/33
*VT100*color1:     rgb:ff/a0/a0
*VT100*color9:     rgb:ff/a0/a0
*VT100*color2:     rgb:98/fb/98
*VT100*color10:    rgb:9a/cd/32
*VT100*color3:     rgb:f0/e6/8c
*VT100*color11:    rgb:f0/e6/8c
*VT100*color4:     rgb:87/ce/eb
*VT100*color12:    rgb:87/ce/eb
*VT100*color5:     rgb:ff/a0/a0
*VT100*color13:    rgb:ff/a0/a0
*VT100*color6:     rgb:87/ce/eb
*VT100*color14:    rgb:87/ce/eb
*VT100*color7:     rgb:ff/ff/ff
*VT100*color15:    rgb:ff/ff/ff

Theme 12

! Theme 12
*VT100*foreground: rgb:ff/ff/ff
*VT100*background: rgb:00/00/00
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:bf/72/76
*VT100*color2:     rgb:86/af/80
*VT100*color3:     rgb:96/8a/38
*VT100*color4:     rgb:36/73/b5
*VT100*color5:     rgb:9a/70/b2
*VT100*color6:     rgb:7a/be/cc
*VT100*color7:     rgb:db/db/db
*VT100*color8:     rgb:66/92/af
*VT100*color9:     rgb:e5/50/5f
*VT100*color10:    rgb:87/bc/87
*VT100*color11:    rgb:e0/d9/5c
*VT100*color12:    rgb:1b/85/d6
*VT100*color13:    rgb:ad/73/ba
*VT100*color14:    rgb:33/8e/aa
*VT100*color15:    rgb:f4/f4/f4

Theme 13

! Theme 13
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:aa/aa/aa
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:9e/18/28
*VT100*color2:     rgb:ae/ce/92
*VT100*color3:     rgb:96/8a/38
*VT100*color4:     rgb:41/41/71
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:7f/9f/7f
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:cf/61/71
*VT100*color10:    rgb:af/c5/af
*VT100*color11:    rgb:f0/df/af
*VT100*color12:    rgb:8e/9f/bc
*VT100*color13:    rgb:dc/a3/a3
*VT100*color14:    rgb:95/c1/c5
*VT100*color15:    rgb:ff/ff/ff

Theme 14

! Theme 14
*VT100*background: rgb:95/95/95
*VT100*foreground: rgb:00/00/00
*VT100*color0:     rgb:7f/7f/7f
*VT100*color1:     rgb:cd/00/00
*VT100*color2:     rgb:00/8b/00
*VT100*color3:     rgb:ee/ee/00
*VT100*color4:     rgb:00/00/cd
*VT100*color5:     rgb:cd/00/cd
*VT100*color6:     rgb:00/ee/ee
*VT100*color7:     rgb:fa/eb/d7
*VT100*color8:     rgb:e5/e5/e5
*VT100*color9:     rgb:80/00/00
*VT100*color10:    rgb:00/50/20
*VT100*color11:    rgb:99/55/00
*VT100*color12:    rgb:00/40/80
*VT100*color13:    rgb:44/33/00
*VT100*color14:    rgb:30/60/80
*VT100*color15:    rgb:ff/ff/ff

Theme 15

! Theme 15
*VT100*background: rgb:1d/2b/3a
*VT100*foreground: rgb:be/be/be
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:d3/62/65
*VT100*color2:     rgb:ae/ce/91
*VT100*color3:     rgb:e7/e1/8c
*VT100*color4:     rgb:7a/7a/b0
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:41/81/79
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:ef/81/71
*VT100*color10:    rgb:e5/f7/79
*VT100*color11:    rgb:ff/f7/99
*VT100*color12:    rgb:41/86/be
*VT100*color13:    rgb:ef/9e/be
*VT100*color14:    rgb:71/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 16

! Theme 16
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:be/be/be
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:9e/18/28
*VT100*color2:     rgb:ae/ce/92
*VT100*color3:     rgb:96/8a/38
*VT100*color4:     rgb:41/41/71
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:41/81/79
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:cf/61/71
*VT100*color10:    rgb:c5/f7/79
*VT100*color11:    rgb:ff/f7/96
*VT100*color12:    rgb:41/86/be
*VT100*color13:    rgb:cf/9e/be
*VT100*color14:    rgb:71/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 17

! Theme 17
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:e5/e5/e5
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:ff/00/00
*VT100*color2:     rgb:00/ff/00
*VT100*color3:     rgb:ff/ff/00
*VT100*color4:     rgb:00/00/ff
*VT100*color5:     rgb:ff/00/ff
*VT100*color6:     rgb:00/ff/ff
*VT100*color7:     rgb:ff/ff/ff
*VT100*color8:     rgb:ff/d3/9b
*VT100*color9:     rgb:ff/82/47
*VT100*color10:    rgb:ff/82/ab
*VT100*color11:    rgb:87/ce/fa
*VT100*color12:    rgb:ff/ff/ff
*VT100*color13:    rgb:ff/ff/ff
*VT100*color14:    rgb:ff/ff/ff
*VT100*color15:    rgb:ff/ff/ff

Theme 18

! Theme 18
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:e5/e5/e5
*VT100*color0:  rgb:00/00/00
*VT100*color1:  rgb:9e/18/28
*VT100*color2:  rgb:5c/b2/47
*VT100*color3:  rgb:96/8a/38
*VT100*color4:  rgb:41/61/a0
*VT100*color5:  rgb:9b/76/8e
*VT100*color6:  rgb:41/91/89
*VT100*color7:  rgb:be/be/be
*VT100*color8:  rgb:66/66/66
*VT100*color9:  rgb:cf/61/71
*VT100*color10: rgb:c5/f7/79
*VT100*color11: rgb:ff/f7/96
*VT100*color12: rgb:41/86/be
*VT100*color13: rgb:cf/9e/be
*VT100*color14: rgb:71/be/be
*VT100*color15: rgb:dd/dd/dd

Theme 19

! Theme 19
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:e5/e5/e5
*VT100*color0:  rgb:00/00/00
*VT100*color1:  rgb:b0/70/50
*VT100*color2:  rgb:12/91/4e
*VT100*color3:  rgb:a0/a0/70
*VT100*color4:  rgb:3e/45/81
*VT100*color5:  rgb:a0/70/a0
*VT100*color6:  rgb:70/a0/a0
*VT100*color7:  rgb:a0/a0/a0
*VT100*color8:  rgb:60/60/60
*VT100*color9:  rgb:b0/70/50
*VT100*color10: rgb:12/91/4e
*VT100*color11: rgb:c0/c0/90
*VT100*color12: rgb:3e/45/81
*VT100*color13: rgb:c0/90/c0
*VT100*color14: rgb:90/c0/c0
*VT100*color15: rgb:ff/ff/ff

Theme 20

! Theme 20
*VT100*foreground: rgb:aa/aa/aa
*VT100*background: rgb:00/00/00
*VT100*color0:     rgb:30/34/30
*VT100*color1:     rgb:bf/79/79
*VT100*color2:     rgb:97/b2/6b
*VT100*color3:     rgb:cd/cd/c1
*VT100*color4:     rgb:86/a2/be
*VT100*color5:     rgb:d9/b7/98
*VT100*color6:     rgb:a1/b5/cd
*VT100*color7:     rgb:ff/ff/ff
*VT100*color8:     rgb:cd/b5/cd
*VT100*color9:     rgb:f4/a4/5f
*VT100*color10:    rgb:c5/f7/79
*VT100*color11:    rgb:ff/ff/ef
*VT100*color12:    rgb:98/af/d9
*VT100*color13:    rgb:d7/d9/98
*VT100*color14:    rgb:a1/b5/cd
*VT100*color15:    rgb:de/de/de

Theme 21

! Theme 21
*VT100*background: rgb:1a/1a/1a
*VT100*foreground: rgb:aa/aa/aa
*VT100*color0:     rgb:00/00/00
*VT100*color8:     rgb:66/66/66
*VT100*color1:     rgb:9e/18/28
*VT100*color9:     rgb:bc/57/66
*VT100*color2:     rgb:00/88/00
*VT100*color10:    rgb:61/a1/71
*VT100*color3:     rgb:d2/bb/4b
*VT100*color11:    rgb:e7/db/52
*VT100*color4:     rgb:41/41/71
*VT100*color12:    rgb:50/85/af
*VT100*color5:     rgb:96/3c/59
*VT100*color13:    rgb:a9/7a/99
*VT100*color6:     rgb:41/81/79
*VT100*color14:    rgb:6b/a4/a4
*VT100*color7:     rgb:be/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 22

! Theme 22
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:be/be/be
*VT100*color0:     rgb:00/00/00
*VT100*color1:     rgb:d3/62/65
*VT100*color2:     rgb:ae/ce/91
*VT100*color3:     rgb:e7/e1/8c
*VT100*color4:     rgb:7a/7a/b0
*VT100*color5:     rgb:96/3c/59
*VT100*color6:     rgb:7f/9f/7f
*VT100*color7:     rgb:be/be/be
*VT100*color8:     rgb:66/66/66
*VT100*color9:     rgb:ef/81/71
*VT100*color10:    rgb:e5/f7/79
*VT100*color11:    rgb:f0/df/af
*VT100*color12:    rgb:8e/9f/bc
*VT100*color13:    rgb:ef/9e/be
*VT100*color14:    rgb:71/be/be
*VT100*color15:    rgb:ff/ff/ff

Theme 24

! Theme 24
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:be/be/be
*VT100*color0:  rgb:00/00/00
*VT100*color1:  rgb:cd/5c/5c
*VT100*color2:  rgb:8e/ae/71
*VT100*color3:  rgb:d2/b4/8c
*VT100*color4:  rgb:5f/7b/8a
*VT100*color5:  rgb:cd/cd/b4
*VT100*color6:  rgb:68/68/68
*VT100*color7:  rgb:ff/ff/ff
*VT100*color8:  rgb:00/00/00
*VT100*color9:  rgb:ee/63/63
*VT100*color10: rgb:95/c7/49
*VT100*color11: rgb:cd/cd/c1
*VT100*color12: rgb:6b/7b/8a
*VT100*color13: rgb:cd/cd/b4
*VT100*color14: rgb:77/87/98
*VT100*color15: rgb:ca/ca/ca

Theme 25

! Theme 25
*VT100*background: rgb:00/00/00
*VT100*foreground: rgb:be/be/be
*color0:  rgb:00/00/00
*color1:  rgb:80/00/00
*color2:  rgb:00/80/00
*color3:  rgb:d0/d0/90
*color4:  rgb:00/00/80
*color5:  rgb:80/00/80
*color6:  rgb:a6/ca/f0
*color7:  rgb:d0/d0/d0
*color8:  rgb:b0/b0/b0
*color9:  rgb:f0/80/60
*color10: rgb:60/f0/80
*color11: rgb:e0/c0/60
*color12: rgb:80/c0/e0
*color13: rgb:f0/c0/f0
*color14: rgb:c0/d8/f8
*color15: rgb:e0/e0/e0

Theme 26

! Theme 26
*VT100*foreground: #9da560
*VT100*background: #101309
*VT100*color0: #101309
*VT100*color8: #222815
*VT100*color1: #C8611F
*VT100*color9: #ffb73e
*VT100*color2: #546B28
*VT100*color10: #9fca4e
*VT100*color3: #DCA53E
*VT100*color11: #ffff77
*VT100*color4: #235967
*VT100*color12: #45a9c2
*VT100*color5: #914C5A
*VT100*color13: #ff91aa
*VT100*color6: #4F9E4E
*VT100*color14: #96ff94
*VT100*color7: #9da560
*VT100*color15: #ffffd8

Theme 27

! Theme 27
*VT100*foreground:     rgb:dd/dd/dd
*VT100*background:     rgb:22/22/22
*VT100*color0:         rgb:19/19/19
*VT100*color8:         rgb:25/25/25
*VT100*color1:         rgb:80/32/32
*VT100*color9:         rgb:98/2b/2b
*VT100*color2:         rgb:5b/76/2f
*VT100*color10:        rgb:89/b8/3f
*VT100*color3:         rgb:aa/99/43
*VT100*color11:        rgb:ef/ef/60
*VT100*color4:         rgb:32/4c/80
*VT100*color12:        rgb:2b/4f/98
*VT100*color5:         rgb:70/6c/9a
*VT100*color13:        rgb:82/6a/b1
*VT100*color6:         rgb:92/b1/9e
*VT100*color14:        rgb:a1/cd/cd
*VT100*color7:         rgb:ff/ff/ff
*VT100*color15:        rgb:dd/dd/dd

Theme 28

! Theme 28
*VT100*foreground: #f2f2f2
*VT100*background: #101010
*VT100*color0:    #6c6c6c
*VT100*color1:    #e9897c
*VT100*color2:    #b6e77d
*VT100*color3:    #ecebbe
*VT100*color4:    #a9cdeb
*VT100*color5:    #ea96eb
*VT100*color6:    #c9caec
*VT100*color7:    #f2f2f2
*VT100*color8:    #747474
*VT100*color9:    #f99286
*VT100*color10:    #c3f786
*VT100*color11:    #fcfbcc
*VT100*color12:    #b6defb
*VT100*color13:    #fba1fb
*VT100*color14:    #d7d9fc
*VT100*color15:    #e2e2e2

這測試顏色用的 Bash 指令稿,以上這些色碼表就是用這個程式跑出來的:

#!/bin/bash
echo "Background | Foreground colors"
echo "---------------------------------------------------------------------"
for((bg=40;bg<=47;bg++)); do
  for((bold=0;bold<=1;bold++)) do
    echo -en "\033[0m"" ESC[${bg}m   | "
    for((fg=30;fg<=37;fg++)); do
      if [ $bold == "0" ]; then
        echo -en "\033[${bg}m\033[${fg}m [${fg}m  "
      else
        echo -en "\033[${bg}m\033[1;${fg}m [1;${fg}m"
      fi
    done
    echo -e "\033[0m"
  done
done