Home | History | Annotate | Download | only in wscons
History log of /src/sys/dev/wscons/wsemulconf.c
RevisionDateAuthorComments
 1.8  02-Feb-2010  drochner add hooks to allow terminal emulations to be installed by LKMs
(these are not available in early bootstrap, so this is not an
option for the system's default emulation)
 1.7  11-Dec-2005  christos branches: 1.7.74;
merge ktrace-lwp.
 1.6  28-Jul-2004  jmmv 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@.
 1.5  13-Oct-2001  augustss branches: 1.5.18;
ANSIfy.
 1.4  05-Jan-2000  drochner branches: 1.4.6; 1.4.8;
replace embedded _rcsid[] string by __KERNEL_RCSID(), remove _copyright[]
 1.3  15-Jun-1998  drochner branches: 1.3.14;
Fix broken pointer arithmetic.
Being here, add hooks for the highly-desired-but-not-yet-done
vt100 emulation.
 1.2  17-Apr-1998  thorpej defopt the WSEMUL options.
 1.1  22-Mar-1998  drochner Initial import of cgd's new wscons code.
 1.3.14.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.8.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.6.1  22-Oct-2001  nathanw Catch up to -current.
 1.5.18.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.18.2  18-Sep-2004  skrll Sync with HEAD.
 1.5.18.1  03-Aug-2004  skrll Sync with HEAD
 1.7.74.1  11-Mar-2010  yamt sync with head

RSS XML Feed