<< Hunter Valley 2003 | Journals | XEmacs Survival Guide >>
How to get a scrollbar in an xterm?
To enable a scrollbar in your xterm window, place your mouse cursor in the xterm window, hold down the ctrl key, and push your middle mouse button. This will give you a menu and one of the options is "EnableScroll Bar" select this option and a scroll bar will appear.
To have this happen automatically for all your xterms, put the following line into a file called .Xresources
XTerm*scrollBar: true
If you want to change the number of lines that the scroll bar keeps track of, you can put this line in your .Xresources as well:
XTerm*SaveLines: 1000
where 1000 is the number of lines you want to be able to scroll back to.
The .Xresources method did not work in Tru64
How to get a scrollbar in an xterm? (Another Method)
Here is a quick and dirty way of adding a scrollbar (-sb) to an xterm window. I like adding colors to it, too, especially old school black and green. The xterm environment is determined by the .Xdefaults file if it is present.
xterm -bg black -fg green -title "My Blog Log" -sb &
If you make changes to the .Xdefaults file during your login session, you can load the changes by doing the following action:
xrdb -load /home/esofthub/.Xdefaults
You might also want to increase the buffer space. In this example, I am increasing the buffer space to 3000 lines.
xterm -bg black -fg green -title "My Blog Log" -sb -sl 3000 &