我使用我的~/.Xresources
文件进行配置URxvt
,在向文件添加注释后,似乎导致xrdb
停止接受该文件。
我现在明白了:
xrdb: colon missing on line 3, ignoring line
xrdb: colon missing on line 5, ignoring line
xrdb: colon missing on line 7, ignoring line
xrdb: colon missing on line 9, ignoring line
xrdb: colon missing on line 11, ignoring line
xrdb: colon missing on line 13, ignoring line
xrdb: colon missing on line 14, ignoring line
xrdb: colon missing on line 16, ignoring line
xrdb: colon missing on line 18, ignoring line
xrdb: colon missing on line 20, ignoring line
xrdb: colon missing on line 22, ignoring line
xrdb: colon missing on line 24, ignoring line
xrdb: colon missing on line 26, ignoring line
奇怪的是,这些并非都是注释行。其中一些是,其中一些是空白的,其中一些是实际的配置行。它似乎切断了某个点也很奇怪,该文件是 42 行。
我的~/.Xresources
文件是
! === URvxt Configuration Section ===:
! Turn off the scrollbar.
URxvt*scrollBar: true
! Set an external border of 4 pixels.
URxvt*externalBorder: 4
! Make the pointer blink.
URxvt*pointerBlink: true
! Save as many lines as zsh.
URxvt*saveLines: 100000
! Set font to Terminus
URxvt*font: xft:Terminus:size=10
! === URxvt Colorscheme Section ===
! Set the foreground (text) to pure white.
URxvt.foreground: #FFFFFF
! Set the background to a grey-black.
URxvt.background: #151515
! Color 0 - Primary Background
URxvt.color0: #151515
! Color 1 - Primary Foreground
URxvt.color1: #FFFFFF
! Color 2 - Secondary Background
URxvt.color2: #1F1F1F
! Color 3 - Secondary Foreground
URvxt.color3: #787878
! === END URxvt Colorscheme Section
! === END URvxt Configuration Section ===
有谁知道为什么我会收到这些错误?
看起来
xrdb
期待评论总是以“!”开头 在第一列。文档对此并不完全清楚:“如果一行以!(感叹号)开头,则将其视为注释,而忽略该行的其余部分”