Sunday, December 2, 2012

Customize Xterm, the original and best terminal…

Note: Translated from this original link:

1. root@debian:~# vim /root/.Xresources
2. content of the file

! Use a nice truetype font and size by default... 
xterm*faceName: DejaVu Sans Mono Book 
xterm*faceSize: 12 

! Every shell is a login shell by default (for inclusion of all necessary environment variables) 
xterm*loginshell: true 

! I like a LOT of scrollback... 
xterm*savelines: 16384 

! double-click to select whole URLs :D 
xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48 

! DOS-box colours... 
xterm*foreground: white 
xterm*background: balck
xterm*cursorColor: green
xterm*color0: rgb:00/00/00 
xterm*color1: rgb:a8/00/00 
xterm*color2: rgb:00/a8/00 
xterm*color3: rgb:a8/54/00 
xterm*color4: rgb:00/00/a8 
xterm*color5: rgb:a8/00/a8 
xterm*color6: rgb:00/a8/a8 
xterm*color7: rgb:a8/a8/a8 
xterm*color8: rgb:54/54/54 
xterm*color9: rgb:fc/54/54 
xterm*color10: rgb:54/fc/54 
xterm*color11: rgb:fc/fc/54 
xterm*color12: rgb:54/54/fc 
xterm*color13: rgb:fc/54/fc 
xterm*color14: rgb:54/fc/fc 
xterm*color15: rgb:fc/fc/fc 

! right hand side scrollbar... 
xterm*rightScrollBar: true 
xterm*ScrollBar: true 

! stop output to terminal from jumping down to bottom of scroll again 
xterm*scrollTtyOutput: false

3. xrdb -merge ~/.Xresources

4. default configuration
/etc/X11/app-defaults/XTerm

5. xrdb -load /etc/X11/app-defaults/XTerm


No comments:

Post a Comment