Subject: Reverse Video
To: None <port-mac68k@netbsd.org>
From: Joshua Coombs <jcoombs@gwi.net>
List: port-mac68k
Date: 03/17/2004 12:49:30
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