Search This Blog

Monday, September 7, 2015

How to change XTerm background?

All colors: https://critical.ch/xterm/

Ok, lets check it. Open xterm, and write command:

$ xterm -bg DarkOliveGreen

And you should see new color of background.

If you want to save new settings for long time, then you should edit .Xresources  file, witch is in your home directory.

It's my .Xresources file:

XTerm*background:        DarkOliveGreen 
XTerm*foreground:         white
XTerm*cursorColor:        white
XTerm*VT100.geometry:     80x25
XTerm*faceName:           Terminus:style=Regular:size=10

! XTerm*font:              -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*

XTerm*dynamicColors:      true
XTerm*utf8:               2
XTerm*eightBitInput:      true
XTerm*saveLines:          512
XTerm*scrollKey:          true
XTerm*scrollTtyOutput:    false
XTerm*scrollBar:          true
XTerm*rightScrollBar:     true
XTerm*jumpScroll:         true
XTerm*multiScroll:        true
XTerm*toolBar:            false


And after editing of this file, you need to save your settings, type this command:

$ xrdb -merge ~/.Xresources

No comments: