Posted by Steve on Thu 30 Dec 2004 at 18:29
xterm is the default terminal emulator, or shell program, that people use when running the X11 Window System. Despite its apparent simplicity it's very customizable, allowing you to change fonts, sizes, and colours with only a little effort.
Many newcomers to Linux don't realise that there are menu options available with xterms and instead seem to believe that they must use the KDE, or GNOME terminal applications to get adjust fonts.
Open up an xterm, and you can see menus by holding down the "Ctrl" key upon your keyboard and clicking upon the body of the window with either your left, right, or center mouse button.
For example if you wish to see to adjust the font you're using you can use "Ctrl + Right mouse button" to show the following menu:

Selecting the options with the mouse will change your currently open window.
Other aspects of your xterms can be configured, such as the background colour and the text colour.
When it comes to changing settings you have two choices:
The former is the simplest way of customization, but you don't have the chance to make so many changes.
Simple options such as the size of the window, and it's colours can be achieved such as the following:
xterm -rightbar -bg white -fg black -geometry 80x25
This command opens an xterm with a white background, and a black text (the fg parameter) with a scrollbar upon the righthand side.
More complex settings are possible, and running "man xterm" will give you a good list of command line options to choose from.
When it comes to customizing xterm in a serious way XResources are the way to go, as these will apply to all windows that are opened.
XResources are read from the file ~/.Xresources when you login, but if you wish to force them to be reloaded you run the command:
xrdb -merge ~/.Xresources
Save the following into a file called .Xresources in your home directory, and then run that command:
! ! Comments begin with a "!" character. ! XTerm*background: black XTerm*foreground: white XTerm*cursorColor: white XTerm.vt100.geometry: 79x25 XTerm*scrollBar: true XTerm*scrollTtyOutput: false
Once you've done this you can open an Xterm and see that the changes have taken effect on all new xterms - even though you've made no command line changes.
Customizing applications with XResources is a difficult subject to get into now, but you can find further information via google ;)
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ Parent ]
[ View Weblogs ]
[ Parent ]