how to change the background color? I selected Profile > Background > solid color
, but where i can select the color?
如何改变背景颜色?我选择了>背景>的纯色,但是在哪里可以选择颜色?
4 个解决方案
#1
1
Since it seems to be Terminal you're talking about, did you disable "Use colors from system theme" under Colors? Once you do that, you can pick a background color, still under the Colors tab. The Background tab looks like it only allows selecting an image (or transparency), which tripped me up as well.
因为它似乎是你正在谈论的终端,你是否禁用了“使用颜色从系统主题”的颜色?一旦你这样做了,你可以选择一个背景颜色,仍然在颜色标签下。背景选项卡看起来只允许选择一个图像(或透明度),这也让我被绊倒了。
#2
29
There are two well-supported ways to change the background color of an xterm (remember xterm != Terminal).
有两种很好的方法可以改变xterm的背景颜色(记住xterm != Terminal)。
A. Set the color when you create the xterm: E.g.,
在创建xterm时设置颜色:例如,
% xterm -bg yellow &
OR
或
B. Edit .Xdefaults to include a color specification, such as the following: XTerm*background:yellow
编辑。xdefaults包含一个颜色规范,例如:XTerm*background:yellow。
% vi ~/.Xdefaults (pick your favorite editor)
This can also be done by typing the following into an xterm:
这也可以通过在xterm中输入以下内容来实现:
% cat >> ~/.Xdefaults <RETURN>
XTerm*background:yellow<RETURN>
<CTRL-D>
Whichever way you change .Xdefaults, the change will not take effect until either:
无论您采用何种方式更改。xdefaults,更改将不会生效,直到:
xrdb ~/.Xdefaults
- xrdb ~ / .Xdefaults
- your X server is restarted, probably the easiest way to do that is reboot your machine, or log out.
- 您的X服务器重新启动,可能最简单的方法是重新启动您的机器,或者注销。
Then it will be set once and for all.
然后,它将被设置一次和全部。
#3
6
I would suggest reversing the default foreground and background colors using
我建议反转默认的前景和背景颜色使用。
xterm -rv
#4
4
I use the following colors and font setup for xterm. Add the following to your ".Xresources" file in your home directory.
我使用以下颜色和字体设置的xterm。将以下内容添加到您的“。”Xresources文件在您的主目录中。
XTerm*faceName: Bitstream Vera Serif Mono
xterm*faceSize: 11
xterm*vt100*geometry: 80x60
xterm*saveLines: 16384
xterm*loginShell: true
xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48
xterm*termName: xterm-color
xterm*eightBitInput: false
!BLK Cursor
#define _color0 #000d18
#define _color8 #000d18
!RED Tag
#define _color1 #e89393
#define _color9 #e89393
!GRN SpecialKey
#define _color2 #9ece13
#define _color10 #9ece13
!YEL Keyword
#define _color3 #f0dfaf
#define _color11 #f0dfaf
!BLU Number
#define _color4 #8cd0d3
#define _color12 #8cd0d3
!MAG Precondit
#define _color5 #c0bed1
#define _color13 #c0bed1
!CYN Float
#define _color6 #dfaf8f
#define _color14 #dfaf8f
!WHT Search
#define _color7 #efefef
#define _color15 #efefef
!FMT Include, StatusLine, ErrorMsg
#define _colorBD #ffcfaf
#define _colorUL #ccdc90
#define _colorIT #80d4aa
!TXT Normal, Normal, Cursor
#define _foreground #dcdccc
#define _background #1f1f1f
#define _cursorColor #8faf9f
URxvt*color0 : _color0
URxvt*color1 : _color1
URxvt*color2 : _color2
URxvt*color3 : _color3
URxvt*color4 : _color4
URxvt*color5 : _color5
URxvt*color6 : _color6
URxvt*color7 : _color7
URxvt*color8 : _color8
URxvt*color9 : _color9
URxvt*color10 : _color10
URxvt*color11 : _color11
URxvt*color12 : _color12
URxvt*color13 : _color13
URxvt*color14 : _color14
URxvt*color15 : _color15
URxvt*colorBD : _colorBD
URxvt*colorIT : _colorIT
URxvt*colorUL : _colorUL
URxvt*foreground : _foreground
URxvt*background : _background
URxvt*cursorColor : _cursorColor
XTerm*color0 : _color0
XTerm*color1 : _color1
XTerm*color2 : _color2
XTerm*color3 : _color3
XTerm*color4 : _color4
XTerm*color5 : _color5
XTerm*color6 : _color6
XTerm*color7 : _color7
XTerm*color8 : _color8
XTerm*color9 : _color9
XTerm*color10 : _color10
XTerm*color11 : _color11
XTerm*color12 : _color12
XTerm*color13 : _color13
XTerm*color14 : _color14
XTerm*color15 : _color15
XTerm*colorBD : _colorBD
XTerm*colorIT : _colorIT
XTerm*colorUL : _colorUL
XTerm*foreground : _foreground
XTerm*background : _background
XTerm*cursorColor : _cursorColor
When you have saved the file, run the following to save the changes:
当您保存该文件时,运行以下内容以保存更改:
xrdb -merge ~/.Xresources
#1
1
Since it seems to be Terminal you're talking about, did you disable "Use colors from system theme" under Colors? Once you do that, you can pick a background color, still under the Colors tab. The Background tab looks like it only allows selecting an image (or transparency), which tripped me up as well.
因为它似乎是你正在谈论的终端,你是否禁用了“使用颜色从系统主题”的颜色?一旦你这样做了,你可以选择一个背景颜色,仍然在颜色标签下。背景选项卡看起来只允许选择一个图像(或透明度),这也让我被绊倒了。
#2
29
There are two well-supported ways to change the background color of an xterm (remember xterm != Terminal).
有两种很好的方法可以改变xterm的背景颜色(记住xterm != Terminal)。
A. Set the color when you create the xterm: E.g.,
在创建xterm时设置颜色:例如,
% xterm -bg yellow &
OR
或
B. Edit .Xdefaults to include a color specification, such as the following: XTerm*background:yellow
编辑。xdefaults包含一个颜色规范,例如:XTerm*background:yellow。
% vi ~/.Xdefaults (pick your favorite editor)
This can also be done by typing the following into an xterm:
这也可以通过在xterm中输入以下内容来实现:
% cat >> ~/.Xdefaults <RETURN>
XTerm*background:yellow<RETURN>
<CTRL-D>
Whichever way you change .Xdefaults, the change will not take effect until either:
无论您采用何种方式更改。xdefaults,更改将不会生效,直到:
xrdb ~/.Xdefaults
- xrdb ~ / .Xdefaults
- your X server is restarted, probably the easiest way to do that is reboot your machine, or log out.
- 您的X服务器重新启动,可能最简单的方法是重新启动您的机器,或者注销。
Then it will be set once and for all.
然后,它将被设置一次和全部。
#3
6
I would suggest reversing the default foreground and background colors using
我建议反转默认的前景和背景颜色使用。
xterm -rv
#4
4
I use the following colors and font setup for xterm. Add the following to your ".Xresources" file in your home directory.
我使用以下颜色和字体设置的xterm。将以下内容添加到您的“。”Xresources文件在您的主目录中。
XTerm*faceName: Bitstream Vera Serif Mono
xterm*faceSize: 11
xterm*vt100*geometry: 80x60
xterm*saveLines: 16384
xterm*loginShell: true
xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48
xterm*termName: xterm-color
xterm*eightBitInput: false
!BLK Cursor
#define _color0 #000d18
#define _color8 #000d18
!RED Tag
#define _color1 #e89393
#define _color9 #e89393
!GRN SpecialKey
#define _color2 #9ece13
#define _color10 #9ece13
!YEL Keyword
#define _color3 #f0dfaf
#define _color11 #f0dfaf
!BLU Number
#define _color4 #8cd0d3
#define _color12 #8cd0d3
!MAG Precondit
#define _color5 #c0bed1
#define _color13 #c0bed1
!CYN Float
#define _color6 #dfaf8f
#define _color14 #dfaf8f
!WHT Search
#define _color7 #efefef
#define _color15 #efefef
!FMT Include, StatusLine, ErrorMsg
#define _colorBD #ffcfaf
#define _colorUL #ccdc90
#define _colorIT #80d4aa
!TXT Normal, Normal, Cursor
#define _foreground #dcdccc
#define _background #1f1f1f
#define _cursorColor #8faf9f
URxvt*color0 : _color0
URxvt*color1 : _color1
URxvt*color2 : _color2
URxvt*color3 : _color3
URxvt*color4 : _color4
URxvt*color5 : _color5
URxvt*color6 : _color6
URxvt*color7 : _color7
URxvt*color8 : _color8
URxvt*color9 : _color9
URxvt*color10 : _color10
URxvt*color11 : _color11
URxvt*color12 : _color12
URxvt*color13 : _color13
URxvt*color14 : _color14
URxvt*color15 : _color15
URxvt*colorBD : _colorBD
URxvt*colorIT : _colorIT
URxvt*colorUL : _colorUL
URxvt*foreground : _foreground
URxvt*background : _background
URxvt*cursorColor : _cursorColor
XTerm*color0 : _color0
XTerm*color1 : _color1
XTerm*color2 : _color2
XTerm*color3 : _color3
XTerm*color4 : _color4
XTerm*color5 : _color5
XTerm*color6 : _color6
XTerm*color7 : _color7
XTerm*color8 : _color8
XTerm*color9 : _color9
XTerm*color10 : _color10
XTerm*color11 : _color11
XTerm*color12 : _color12
XTerm*color13 : _color13
XTerm*color14 : _color14
XTerm*color15 : _color15
XTerm*colorBD : _colorBD
XTerm*colorIT : _colorIT
XTerm*colorUL : _colorUL
XTerm*foreground : _foreground
XTerm*background : _background
XTerm*cursorColor : _cursorColor
When you have saved the file, run the following to save the changes:
当您保存该文件时,运行以下内容以保存更改:
xrdb -merge ~/.Xresources