Home | History | Annotate | Download | only in wscons
History log of /src/sys/dev/wscons/wsemul_vt100_keys.c
RevisionDateAuthorComments
 1.11  10-Feb-2010  drochner Allow big parts of the vt100 emulation code (what is in
wsemul_vt100_subr.c) to be used by alternative terminal emulators
(which are not in-tree yet but can be loaded as LKMs).
For this, split out that part of the state structure which is used
by the sharable code and include that in the original vt100 state.
This is only a query-replace and sed(1) job for now, it makes sense
to rearrange things a bit so that even more code can be changed --
will do so later.
 1.10  28-Jan-2010  drochner branches: 1.10.2;
-rename the "KS_GROUP_Ascii" key symbol category to "Plain" because
this is what it meant all the time -- it includes characters >127
-delegate translation of all key symbols >127 to the terminal emulation
layer -- formerly everything non-special was passed to the tty subsystem
directly, involving truncation to a "char", which effectively meant
some ISO-1 assumption
 1.9  11-Dec-2005  christos branches: 1.9.74;
merge ktrace-lwp.
 1.8  29-May-2005  christos - sprinkle const.
- avoid variable shadowing.
 1.7  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.6  24-Mar-2004  drochner remove license clauses 3 and 4 from my cpoyright notices
 1.5  13-Nov-2001  lukem branches: 1.5.16;
add/cleanup RCSIDs
 1.4  13-Oct-2001  augustss ANSIfy.
 1.3  22-Apr-1999  mycroft branches: 1.3.14; 1.3.16;
Map the Home and End keys as xterm does.
 1.2  14-Jul-1998  drochner branches: 1.2.8; 1.2.10;
fix codes delivered by "Help" and "Do" keys
 1.1  20-Jun-1998  drochner First cut on a VT100 emulation.
It should be able to parse escape sequences up to VT300, but not everything
is implemented. Most notably, there is no font handling - all displayable
characters are handed to the graphics driver. To solve this, a serious
interface change to the graphics driver is needed (Unicode?).
 1.2.10.1  21-Jun-1999  thorpej Sync w/ -current.
 1.2.8.1  18-Sep-1999  he Pull up revision 1.3:
Map the Home and End keys as xterm does.
 1.3.16.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.14.2  14-Nov-2001  nathanw Catch up to -current.
 1.3.14.1  22-Oct-2001  nathanw Catch up to -current.
 1.5.16.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.16.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.16.2  18-Sep-2004  skrll Sync with HEAD.
 1.5.16.1  03-Aug-2004  skrll Sync with HEAD
 1.9.74.1  11-Mar-2010  yamt sync with head
 1.10.2.1  30-Apr-2010  uebayasi Sync with HEAD.

RSS XML Feed