Scrollbar fix for color_xterm with Slackware 2.0. WARNING: Use this at your own risk. I admit now than I'm not an experienced C and X windows programmer (just an ordinary user who prefers to get binary distributions), but this is my simple fix to what has been a somewhat annoying problem which others have asked about as well, and received no answers. This fix seems to work on my system, which is Slackware 2.0, kernel 1.1.44, and libXaw3d installed as described in its documentation. After installing Slackware 2.0, I noticed that the scrollbar in color_xterm didn't quite work correctly. It seems to have worked when I had Slackware 1.1.1 (kernel 0.99pl14). In particular, the scrollbar just blinks on and off and doesn't change size properly as lines are added the buffer, but using the scrollbar seems to work. After installing the very nice 3D Athena Widget replacement by Joachim Schnitter, the problem remained, though the scrollbar didn't quite work properly in addition to not displaying properly. BTW: The libXaw3d library adds a nice 3D look to existing programs which use the libXaw library. All you have to do is install it as described. Nothing needs to be built or recompiled. Programs affected include xterm, color_xterm, xload, xclock, seyon, and many others. The package is available as sunsite.unc.edu in /pub/Linux/libs/X. Well, after playing with the source, it didn't take long to find that all sorts of things intended for BSD were being defined (around about line 120 in main.c). I removed a couple of offending lines, and it compiled with a couple warnings, but still the same problems with the scrollbar. Rather than fixing it in an elegant way, I just tried deleted all the stuff for systems that aren't POSIX. The original warnings appeared again, but new binary was about 30k smaller and the scrollbar seems to work! (ok, I'm no C expert) The original main.c file was copied to main.c_orig. The original Makefiles also have "_orig" on the end, since I had to make new ones with xmkmf. HOW TO INSTALL to fix the problem on your system? Well, you could try (as root) changing into the "xterm" directory created by this tar file, and typing: mv /usr/X11/bin/color_xterm /usr/X11/bin/color_xterm_orig mv ./color_xterm /usr/X11/bin/color_xterm and if it doesn't work, just undo with mv /usr/X11/bin/color_xterm_orig /usr/X11/bin/color_xterm But ideally, you might be an experienced X programmer and actually determine what the problem really was (and e-mail me, please), make an elegant fix, and upload a copy to various ftp sites and send to Patrick for future releases of the Slackware distribution. I hope you find this fix useful, and hopefully someone more knowledgable than me will redo it someday. Paul Stoffregen (paul@ece.orst.edu)