NetBSD/share
jmmv 92f81ea7d3 Implement support to dynamically change wscons console and kernel colors.
Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it.  This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
  change the colors dynamically from userland.  This is enabled by default
  in the GENERIC kernel (as well as others) but disabled on all INSTALL*
  kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
  which specify the default colors for the console at boot time.  These have
  the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
2004-07-28 12:34:02 +00:00
..
dict put 'Czechoslovak' and 'Czechoslovakian' back; even through the country 2003-05-24 16:48:31 +00:00
doc Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
examples Spell removable with only two es. Inspired by jmc@openbsd. 2004-04-19 12:44:09 +00:00
i18n Rework how MAKEVERBOSE operates: 2003-10-21 10:01:19 +00:00
locale add the default locale.alias. 2004-07-21 19:02:17 +00:00
man Implement support to dynamically change wscons console and kernel colors. 2004-07-28 12:34:02 +00:00
me Don't remove ${.TARGET} - thanks Alexander for pointing it out. 2004-03-20 20:41:33 +00:00
misc + SIP 2004-07-16 01:07:02 +00:00
mk Enable "loadable module" dlopen() scheme. Necessary to crossbuild the XFree86 2004-07-13 09:29:45 +00:00
nls
pf Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
sushi Fixes to sushi for handling ipv6 autoconfiguration mode in the rc.conf 2004-03-24 18:47:08 +00:00
tabset
termcap Add xpterm and hpterm as aliases for xhpterm. 2004-06-23 22:48:56 +00:00
tmac Add README detailing where current versions of the files 2004-03-29 21:36:45 +00:00
wscons Convert to usage of UUDECODE_FILES and standardize on filename extension 2004-03-19 08:07:22 +00:00
zoneinfo Ignore errors on some rm -rf's for platforms that aren't quite 2004-06-21 18:20:08 +00:00
Makefile Citrus iconv support(5) 2003-06-27 08:39:59 +00:00
Makefile.inc