Re: X11 Terminal Scrollbar
Re: X11 Terminal Scrollbar
On Tue, Apr 08, 2003 at 04:23:52PM -0700, Joe DeCosta wrote:
> with XTerm there isn't one.....however if the program that you're
> executing, like, BitchX for example, supports page up/down you can use
> those keys to scroll.
Yes there is. It's a resource that you can congfigure either on the
command like with the -sb flag, or globally. Create a file in your home
directory called .Xresources, and place the following text in it:
XTerm*saveLines: 1000
XTerm*scrollBar: on
XTerm*thickness: 10
Once you have created this file, run:
xrdb -merge .Xresources
and start a new xterm. Lo! Scrollbar!
The first of these resources sets your scrollback to 1000 lines (the
default is a lot less than that).
The second one actually switches the scrollbar on.
The third says how thick the scrollbar is. There is another resource to
set whether you want the scrollbar on the left or the right, but I don't
remember its name.
Incidentally, I have a few other resources in my .Xresources for
configuring xterm; they set the colour, and also set it to use a
freetype font, so I get font smoothing in xterm:
XTerm*background: gainsboro
XTerm*foreground: black
XTerm*faceName: Monaco
XTerm*faceSize: 10
plus I also use this, so that line wrap works in reverse:
XTerm*reverseWrap: on
See the xterm man page for the ludicrous number of resources you can
actually set. You can define all sorts of keymappings if you want by
manipulating the Xterm.VT100.Translations resource, but that's quite
tricky to get the syntax right, so I'd leave well alone. :-) For the
record, mine looks like this:
Xterm.VT100.Translations: #override <Key>BackSpace: string(0x7F)\n\
<Key>Delete: string(0x04)\n\
<Key>Home: string(0x1b) string("[1~")\n\
<Key>End: string(0x1b) string("[4~")
In particular, this makes sure that the backspace key generates a delete
keypress, rather than Ctrl-H.
Tim
--
Dr Tim Cutts
Informatics Systems Group
Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1SA, UK
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.