WSCONS(4) | Device Drivers Manual | WSCONS(4) |
wscons
—
wsdisplay* at ...
wskbd* at ... mux N
wsmouse* at ... mux N
pseudo-device wsmux
options WSEMUL_SUN
options WSEMUL_VT100
options WSEMUL_NO_DUMB
options WSEMUL_DEFAULT="xxx"
options WS_DEFAULT_FG=WSCOL_XXX
options WS_DEFAULT_BG=WSCOL_XXX
options
WS_DEFAULT_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
options
WS_DEFAULT_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
options WS_KERNEL_FG=WSCOL_XXX
options WS_KERNEL_BG=WSCOL_XXX
options
WS_KERNEL_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
options
WS_KERNEL_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
options WSDISPLAY_COMPAT_PCVT
options WSDISPLAY_COMPAT_SYSCONS
options WSDISPLAY_COMPAT_USL
options WSCOMPAT_USL_SYNCTIMEOUT=nnn
options WSDISPLAY_COMPAT_RAWKBD
options WSKBD_EVENT_AUTOREPEAT
options WSKBD_USONLY
wscons
driver provides support for machine
independent access to the console.
wscons
is made of a number of cooperating
modules, in particular
wscons
does not define its own set of terminal control
sequences and special keyboard codes in terms of
terminfo(5). Instead a
“terminal emulation” is assigned to each virtual screen when the
screen is created. (See
wsconscfg(8).) Different
terminal emulations can be active at the same time on one display. The
following choices are available:
options WSEMUL_NO_DUMB
was specified at build
time. No control sequences are supported besides the ASCII control
characters. The cursor is not addressable. Only ASCII keyboard codes will
be delivered, cursor and functions keys do not work.options WSEMUL_SUN
was specified at kernel build
time. It supports the control sequences of SUN machine consoles and
delivers its keyboard codes for function and keypad keys in use. This
emulation is sufficient for full-screen applications.options
WSEMUL_VT100
. It provides the most commonly used functions of DEC
VT100 terminals with some extensions introduced by the DEC VT220 and DEC
VT320 models. The features of the original VT100 which are not or not
completely implemented are:
Depending on the keyboard used, not all function keys might be available.
In addition to the plain VT100 functions are supported:
In most applications, wscons
will work
sufficiently as a VT220 emulator.
The WSEMUL_DEFAULT
kernel option is used
to select one of the described terminal options as the default choice. The
default takes effect at kernel startup, i.e. for the operating system
console or additional screens allocated through the
WSDISPLAY_DEFAULTSCREENS
option (see
wsdisplay(4)), or if no
emulation type was passed to the
wsconscfg(8) utility.
WSDISPLAY_COMPAT_USL
WSDISPLAY_COMPAT_RAWKBD
WSDISPLAY_COMPAT_PCVT
WSDISPLAY_COMPAT_SYSCONS
Linux/i386 X servers usually run successfully if the first two options are enabled together with the NetBSD Linux binary emulation.
(To have programs looking for device special files of other
console drivers find the wscons
driver entry points,
symlinks are a helpful measure.)
options WS_DEFAULT_FG=WSCOL_XXX
options WS_DEFAULT_BG=WSCOL_XXX
options
WS_DEFAULT_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
options
WS_DEFAULT_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
WS_DEFAULT_FG
and
WS_DEFAULT_BG
set the foreground and background
used on color displays. WS_DEFAULT_COLATTR
and
WS_DEFAULT_MONOATTR
are additional attribute flags
used on color or monochrome displays, respectively. Whether the attributes
are supported or not depends on the actually used graphics adapter. These
options are ignored by the “dumb” terminal emulation.
See src/sys/dev/wscons/wsdisplayvar.h
for available WSCOL_XXX
and
WSATTR_XXX
values.
options WS_KERNEL_FG=WSCOL_XXX
options WS_KERNEL_BG=WSCOL_XXX
options
WS_KERNEL_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
options
WS_KERNEL_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
WS_DEFAULT_*
counterparts.
options WSCOMPAT_USL_SYNCTIMEOUT=nnn
WSDISPLAY_COMPAT_USL
uses a somewhat complex
handshake protocol to pass control to user programs such as X servers
controlling a virtual screen. In order to prevent a non-responsive
application from locking the whole console system, a screen switch will be
rolled back after a 5 second timeout if the application does not respond.
This option can be used to specify in seconds a different timeout value.
options WSKBD_EVENT_AUTOREPEAT
options WSKBD_USONLY
June 5, 2012 | NetBSD 9.4 |