Greetings,
Linux has a great color ls utility which can be used in conjunction
with a color xterm to do nice highlighting of directory listings. I would like
to be able to reproduce this on my LX running Solaris 2.3 (also on another LX
running 4.1.3C, but that's a whole other can of worms). I've downloaded the
GNU version of ls (from the fileutils collection), applied the Linux color
patches, and compiled it successfully. It appears to work properly (it outputs
all the right ANSI color escape codes).
However, trying to compile the xterm source (from ftp.x.org in
/pub/R5untarred/mit/clients/xterm with colour-xterm-R5-patch.gx in /contrib)
has driven me nuts. If I just do an xmkmf (SVR4 and various other Solaris-ish
type flags get set), main.c complains about "ws" being undefined. If I hard
define it, things compile, but it doesn't work very well (no color is
displayed, the number of rows/cols are not set properly, etc.) There are also
a few warnings about arguments to select() not being right in a couple of
other modules. (I have the same trouble on the raw xterm source, so I don't
think the color patches are messing me up.)
Surely, I am not the first person to attempt this. Has anyone
successfully done it? What flags do I need to set in the Imakefile/Makefile to
make all the #ifdefs happy? I realize some of my problems may be that I'm
compiling pure X11R5 code on an Openwindows system - is that going to kill me from
square one, or are they sufficiently identical to not be a problem?
I'm way out of my depth here. Any help will be greatly appreciated.
Thanks.
Mike