Terminal emulators

From SaniWiki

Jump to: navigation, search

[edit] xterm and urxvt

All configuration options, unless said otherwise, should be put in your ~/.Xresources. When you want to see your changes you must reload those changes into X with xrdb -load ~/.Xresources.

Most if not all configuration options in this section should work for both xterm and urxvt unless said otherwise.

[edit] How to disable bold fonts

There is a bug in xterm so you can't disable bold fonts. What you can do is to set the same font for bold and normal fonts.

 xterm*font: fixed
 xterm*boldFont: fixed

[edit] How to see the currently set colors in your terminal

NOTE: This program only works with xterm


Install the xtermcontrol program, it exists in the standard Ubuntu repositories.
Type:

 xtermcontrol --get-color<number 0-15>

And you'll get an HEX-code for your color.

I like this color scheme, which I think is the default i xterm, but not in urxvt:

 ! Normal
 ! color0    black
 ! color1    red
 ! color2    green
 ! color3    yellow
 ! color4    blue
 ! color5    purple
 ! color6    cyan
 ! color7    white
 urxvt*color0:    #000000
 urxvt*color1:    #cd0000
 urxvt*color2:    #00cd00
 urxvt*color3:    #cdcd00
 urxvt*color4:    #0000ee
 urxvt*color5:    #cd00cd
 urxvt*color6:    #00cdcd
 urxvt*color7:    #e5e5e5
 ! Light
 ! color8    black
 ! color9    red
 ! color10    green
 ! color11    yellow
 ! color12    blue
 ! color13    purple
 ! color14    cyan
 ! color15    white
 urxvt*color8:    #7f7f7f
 urxvt*color9:    #ff0000
 urxvt*color10:    #00ff00
 urxvt*color11:    #ffff00
 urxvt*color12:    #5c5cff
 urxvt*color13:    #ff00ff
 urxvt*color14:    #00ffff
 urxvt*color15:    #ffffff