[comp.sys.sun] How do I reverse pixels 0 and 1 of read-only default colormap?

akt@sasig.saic.com (Amit Thakur) (10/04/90)

I am using Sun's OpenWindows Version 2.0 under SunOS 4.0.3, and need to
reverse the default setting (in the default colormap) of pixel 0 to white
(#ffffff) and pixel 1 to black (#000000).

I have looked through the PostScript code in $OPENWINHOME/etc/NeWS used by
xnews to initialize the default colormap, but am unable to find the place
where this is done.

I tried to write a program to change the default colormap, but the call to
XFreeColors bombs out because the colormap is read-only.

Any help would be appreciated.  Please reply to me at akt@sasig.saic.com,
as I am not (yet) on this mailing list.

Thanks in advance,
-- akt@sasig.saic.com