This is the README file for motif scrollbar patch to ansi-xterm. It has blurbs about what I did and why I did it. If you do not have motif, a statically build binary is supplied for your convenience. To use the statically build binary, download the file ansi-xterm-R6-motif-sb-static-bin.gz, gunzip it and change mode to 755. If you have motif and want to appy the patch to ansi-xterm, keep reading. Why ansi-xterm you may ask. Well, I started to use vim (vi improved, a vi clone) after it started to support syntax highlighting. I do not like GUI editors. I like lean, mean fast editors that run on xterms and does not demand to have 3 hands. I used to use vile (it's a fine editor). But syntax highlighing helps a great deal in my coding, so I had to switch to vim. vim uses ANSI color support of various xterms for syntax higlighting. I used to use mxterm (an xterm with motif hack) which supports ANSI colors, but the color spporting code is buggy. So I switched to rxvt for that. But it's kind of slow on text selection with mouse and does not have cool scrollbar. Then I found ansi- xterm. It Supports 16 colors (more than enough for my need). ansi-xterm uses Xaw and I hate Xaw scrollbars. So I compiled and linked it with libneXtaw. neXtaw is nice but the scrollbar was inheriting the background color of the window, which was terrible in my case (I use white background and blue foregound all my life. Therefore, white scrollbars were loosing 3D shadows and looked just horrible.). As I do not know much about the toolkit (I know motif well), it was difficult to modify the ansi- xterm code to specify a color for scrollbars. So I took the scrollbar.c comes with mxterm and replaced the one comes with ansi-xterm. Added my own hack so that scrollbars color can be set via X resources (ScrollbarBg). The default Imakefile is for Motif. If you do not have Motif or do not want to have Motif scrollbar, edit Imakefile and comment out the line #define HAVE_MOTIF If you compile with Motif, the background color of the scrollbar can be changed by specifying a X resource in the X Resources file (XTerm-ansi). Example: XTerm-ansi*ScrollbarBg: gray This resource guarantees the scrollbar color, even if the colormap is full. If the colormap is full, the closest possible color will be used. Before applying the patch, make sure you'r applying it to the right ansi-xterm. Here's the size and MD5 checksup of the ansi-xterm archive I used. ansi-xterm-R6.tgz (252005 bytes) MD5(ansi-xterm-R6.tgz)= 27c3e7988134922780b97295f882f1f5 To apply the patch: $ tar -xvzf ansi-xterm-R6.tgz $ cd ansi-xterm-R6 $ gunzip ansi-xterm-R6-motif-sb-p1.gz $ patch < ansi-xterm-R6-motif-sb-p1 To compile, at the shell prompt, type $ xmkmf $ make The name of the binary is mansi_xterm If you use ansi_xterm with this patch, please let me know. -- Muhammad A Muquit URL: http://www.fccc.edu/users/muquit/ email: ma_muquit@fccc.edu Aug-09-1997