ansi-xterm with Motif scrollbar

Why ansi-xterm you may ask. Well, I started to use vim after it started to support syntax highlighting. I'm a vi person and do not like GUI editors (although I code in Motif all the time). I like lean, mean fast editor that run on xterms. I used to use vile (it's a fine editor). But syntax highlighting helps a great deal in my coding, so I had to switch to vim. vim uses ANSI color support of various xterms for syntax highlighting. I used to use mxterm (an xterm with motif hack) which supports ANSI colors, but the color supporting code was 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. Supports 16 colors (more than enough for my need).

ansi-xterm uses Xaw and I hate Xaw scrollbar. 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 foreground all my life. Therefore white scrollbar was 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 scrollbar.

So I took the scrollbar.c comes with mxterm and replaced the one comes with ansi-xterm. Also added my own hack so that scrollbar color can be set via X resources. It turned out that in my sub-conscious my mind I was always wanting a motif scrollbar on my xterm :).

Below is a screen shot of vim editing hello.c in ansi-xterm with motif scrollbar.

hello.gif

Download

Please read the README file for details.
--
Muhammad A Muquit
email: ma_muquit@fccc.edu
Aug-09-1997