Home | History | Annotate | Download | only in wscons
History log of /src/sys/dev/wscons/wsemulvar.h
RevisionDateAuthorComments
 1.16  19-May-2017  macallan add support for loading fonts in vcons and subsequently resizing screens
- drivers can use this by setting VCONS_LOADFONT and WSSCREEN_RESIZE
- each vcons screen can now have its own font and geometry
- while there, add support for xterm's ESC[18t to report the text buffer's
size

With this tou can:
wsfontload -N foo /usr/share/wscons/fonts/flori.816
wsconsctl -dw font=foo
currently this is limited to drivers that don't use the glyph cache, like genfb
 1.15  02-Feb-2010  drochner branches: 1.15.22; 1.15.40;
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.14  25-Mar-2008  cube branches: 1.14.4;
Split device_t and softc for wskbd(4), wsmouse(4) and that creepy wsmux(4).
 1.13  09-Oct-2006  peter branches: 1.13.48;
KNF: No variable names in the prototype.
 1.12  11-Dec-2005  christos branches: 1.12.20; 1.12.22;
merge ktrace-lwp.
 1.11  29-May-2005  christos branches: 1.11.2;
- sprinkle const.
- avoid variable shadowing.
 1.10  27-Feb-2005  perry nuke trailing whitespace
 1.9  28-Jul-2004  jmmv branches: 1.9.4; 1.9.6;
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.8  13-Oct-2001  augustss branches: 1.8.18;
ANSIfy.
 1.7  30-May-2001  mrg branches: 1.7.2;
use _KERNEL_OPT
 1.6  17-Jan-1999  drochner branches: 1.6.20;
define a "clear screen" command to the emulator and complete the
emulation's "reset" implementations as far as useful
 1.5  13-Jan-1999  drochner add a hook for resetting the terminal emulator completely or partially
 1.4  15-Jun-1998  drochner Move the translation of keypad and function keys into the realm of the
terminal emulation. For this, change the interface to wsdisplay_kbdinput()
to take a "keysym_t" as argument. From there, the code is handed to the
appropriate emulation module via a new entry point: "translate".
Nuke the ioctls dealing with global assignment of character sequences
to keypad/function keys.
The "sun" emulation works much better now!
 1.3  14-May-1998  drochner Simple screen attribute handling for wscons.
The graphics device driver passes a "default attribute" for normal text
output to the wscons framework. If the emulation module needs more
attributes (for different "renditions") it can allocate them via a
callback.
For now, only the "sun" emulation makes use of it.
 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.6.20.2  22-Oct-2001  nathanw Catch up to -current.
 1.6.20.1  21-Jun-2001  nathanw Catch up to -current.
 1.7.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.18.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.18.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.8.18.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.18.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.18.1  03-Aug-2004  skrll Sync with HEAD
 1.9.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.9.4.1  29-Apr-2005  kent sync with -current
 1.11.2.1  30-Dec-2006  yamt sync with head.
 1.12.22.1  22-Oct-2006  yamt sync with head
 1.12.20.1  18-Nov-2006  ad Sync with head.
 1.13.48.1  03-Apr-2008  mjf Sync with HEAD.
 1.14.4.1  11-Mar-2010  yamt sync with head
 1.15.40.1  28-Aug-2017  skrll Sync with HEAD
 1.15.22.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed