A/UX 2.0: How to Start X11 in Color

Configuration
-------------
Macintosh IIfx with 8MB RAM and internal HD80 SC
A/UX 2.0b10
External HD80 SC
AppleColor High-Resolution RGB Monitor
X11 Window System (version that shipped with A/UX 2.0b3)

Problem
-------
I can get X11 in color by selecting the "Console Emulator" session type and
typing:

X -screen 0 -depth 8

However, I cannot find a way to enable X11 color in such a way that the user
can select the "X11" session type and have a color X11 display appear as the
default. None of the various .Xdefaults, .x11start, and so on files seems to
have an option that tells the X server to expect a color display device. Is
there any way to do this, other than via the Console Emulator (or hacking the
/usr/bin/X11/X startup script)?

Yes, there are two ways to launch X11, the native X11 Window System, under A/UX
2.0.  One is choosing from the "A/UX Console Emulator" session type.  The other
is choosing from the "X11" session type from the login dialog Option menu.

The problem you are experiencing is because the default X11 server startup
script (/usr/bin/X11/X) starts up the window in black and white mode.  To start
up the X11 server in color mode from the "X11" session, modify the "xinit"
command line in the /usr/bin/X11/X script file as below (this example is for
8-bit color):

Change:

    xinit xterm ... -- XmacII -logo -v $*  >> $DEBUGLOG 2>&1

To:

    xinit xterm ... -- XmacII -logo -v -screen 0 -depth 8 >> $DEBUGLOG 2>&1


Published Date: Feb 18, 2012