Subject: Re: Reverse Video
To: None <port-mac68k@netbsd.org>
From: Joshua Coombs <jcoombs@gwi.net>
List: port-mac68k
Date: 03/18/2004 11:06:12
> man wscons pulls up some interesting kernel options...
>
> options WS_KERNEL_FG=WSCOL_XXX
> options WS_KERNEL_BG=WSCOL_XXX
> options WS_KERNEL_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
> options WS_KERNEL_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
>
> Given the display on a mac is wscons driven, it'd seem to make
sense
> that those options should work. 'cording to the man page,
WSCOL_XXX is
> defined in /usr/include/dev/wscons/wsdisplayvar.h
>
> #define WSCOL_BLACK 0
> #define WSCOL_RED 1
> #define WSCOL_GREEN 2
> #define WSCOL_BROWN 3
> #define WSCOL_BLUE 4
> #define WSCOL_MAGENTA 5
> #define WSCOL_CYAN 6
> #define WSCOL_WHITE 7
>
> #define WSATTR_REVERSE 1
> #define WSATTR_HILIT 2
> #define WSATTR_BLINK 4
> #define WSATTR_UNDERLINE 8
> #define WSATTR_WSCOLORS 16
>
> We don't wanna muck with the WSATTR lines, but it seems adding the
> following to the kernel should do the trick;
>
> options WS_KERNEL_FG=WSCOL_7
> options WS_KERNEL_BG=WSCOL_0
>
> It passes a config, so next step is to build and boot... Given
the
> slow speed of my box, it'll be a bit before I can verify this
> works, but if it does I'll report back with what I find and how to
do
> it.
>
> Joshua Coombs
Round One: NetBSD 1 - JCoombs 0
/usr/src/sys/arch/mac68k/compile/68030/../../../../dev/wscons/wsemul
_vt100.c: In function `wsemul_vt100_cnattach':
/usr/src/sys/arch/mac68k/compile/68030/../../../../dev/wscons/wsemul
_vt100.c:172: `WSCOL_7' undeclared (first use in this function)
/usr/src/sys/arch/mac68k/compile/68030/../../../../dev/wscons/wsemul
_vt100.c:172: (Each undeclared identifier is reported only once
/usr/src/sys/arch/mac68k/compile/68030/../../../../dev/wscons/wsemul
_vt100.c:172: for each function it appears in.)
/usr/src/sys/arch/mac68k/compile/68030/../../../../dev/wscons/wsemul
_vt100.c:172: `WSCOL_0' undeclared (first use in this function)
*** Error code 1
Stop.
So, I'll go code diving to see whats up. First guess is to use the
string instead of the number?
Joshua Coombs