Home | History | Annotate | Download | only in wscons
History log of /src/sys/dev/wscons/wsemul_vt100_chars.c
RevisionDateAuthorComments
 1.15  03-Nov-2017  maya Use __arraycount a bunch
Also, DIAGNOSTIC panic -> KASSERT
 1.14  25-Feb-2010  drochner branches: 1.14.20;
retire our private definitions for the scan1/3/5/7/9 DEC graphics
symbols, use the unicode definitions instead (which apparently didn't
exist when I wrote that)
 1.13  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.12  18-Feb-2009  snj branches: 1.12.2;
s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.11  11-Dec-2005  christos branches: 1.11.74; 1.11.84; 1.11.86; 1.11.90; 1.11.92; 1.11.96;
merge ktrace-lwp.
 1.10  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.9  24-Mar-2004  drochner remove license clauses 3 and 4 from my cpoyright notices
 1.8  01-Dec-2001  bjh21 branches: 1.8.16;
On a VT100, the "scanline 5" character is also used for box drawing, so
represent it as U+2500 (BOX DRAWINGS LIGHT HORIZONTAL). This makes NetHack
DECgraphics mode work properly on a wscons console using an IBM-encoded font.
 1.7  13-Nov-2001  lukem add/cleanup RCSIDs
 1.6  13-Oct-2001  augustss ANSIfy.
 1.5  18-Jan-2001  jdolecek branches: 1.5.2; 1.5.4;
constify
 1.4  20-Feb-1999  drochner branches: 1.4.8;
complete the font tables for the DEC special fonts; assign some codes
from the private Unicode area (0xe000 ff.) to stuff I didn't find in
the Unicode database
 1.3  12-Feb-1999  drochner change the "mapchar" interface to return a "quality" or "match level"
arguments which allows to find approximations for characters which are
not present in a font
 1.2  11-Jan-1999  drochner Oops, "square root" is Unicode 221a, not 211a!
 1.1  26-Jun-1998  drochner Improvements to the VT100 emulation:
-display DEC special graphics and DEC technical characters as far as
possible
-implement the font switching controls (need documentation!)
-behave well if double-width characters are requested
-simplify the state machine: store CSI command modifiers in variables
instead of dedicating own states to each of them
 1.4.8.1  11-Feb-2001  bouyer Sync with HEAD.
 1.5.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.2.3  08-Jan-2002  nathanw Catch up to -current.
 1.5.2.2  14-Nov-2001  nathanw Catch up to -current.
 1.5.2.1  22-Oct-2001  nathanw Catch up to -current.
 1.8.16.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.16.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.16.1  03-Aug-2004  skrll Sync with HEAD
 1.11.96.1  21-Mar-2012  jdc Pull up revisions (requested by bouyer in ticket #1727):
src/sys/dev/wscons/wsemul_vt100.c 1.31
src/sys/dev/wscons/wsemul_vt100_chars.c 1.12
src/sys/dev/wscons/wsksymdef.h 1.62

s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.11.92.1  21-Mar-2012  jdc Pull up revisions (requested by bouyer in ticket #1727):
src/sys/dev/wscons/wsemul_vt100.c 1.31
src/sys/dev/wscons/wsemul_vt100_chars.c 1.12
src/sys/dev/wscons/wsksymdef.h 1.62

s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.11.90.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.11.86.1  21-Mar-2012  jdc Pull up revisions (requested by bouyer in ticket #1727):
src/sys/dev/wscons/wsemul_vt100.c 1.31
src/sys/dev/wscons/wsemul_vt100_chars.c 1.12
src/sys/dev/wscons/wsksymdef.h 1.62

s/portugese/portuguese/, spotted by Ari Constancio in PR misc/40202.
 1.11.84.1  03-Mar-2009  skrll Sync with HEAD.
 1.11.74.2  11-Mar-2010  yamt sync with head
 1.11.74.1  04-May-2009  yamt sync with head.
 1.12.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.14.20.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed