2004-07-30 19:18:44 +04:00
|
|
|
.\" $NetBSD: wscons.4,v 1.24 2004/07/30 15:18:44 jmmv Exp $
|
1999-04-14 00:25:28 +04:00
|
|
|
.\"
|
2004-07-30 19:18:44 +04:00
|
|
|
.\" Copyright (c) 1999, 2004 The NetBSD Foundation, Inc.
|
1998-07-26 21:50:12 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
1999-04-14 00:25:28 +04:00
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
1998-07-26 21:50:12 +04:00
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.Dd July 28, 2004
|
1998-07-26 21:50:12 +04:00
|
|
|
.Dt WSCONS 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm wscons
|
2004-02-27 02:03:58 +03:00
|
|
|
.Nd workstation console access
|
1998-07-26 21:50:12 +04:00
|
|
|
.Sh SYNOPSIS
|
1999-03-28 00:12:05 +03:00
|
|
|
.Cd options WSEMUL_SUN
|
|
|
|
.Cd options WSEMUL_VT100
|
1999-03-22 22:15:01 +03:00
|
|
|
.Cd options WSEMUL_NO_DUMB
|
2002-07-17 23:36:30 +04:00
|
|
|
.Cd options WSEMUL_DEFAULT=\&"xxx\&"
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.Cd options WS_DEFAULT_FG=WSCOL_XXX
|
|
|
|
.Cd options WS_DEFAULT_BG=WSCOL_XXX
|
|
|
|
.Cd options WS_DEFAULT_COLATTR=\&"(WSATTR_XXX | WSATTR_YYY)"
|
|
|
|
.Cd options WS_DEFAULT_MONOATTR=\&"(WSATTR_XXX | WSATTR_YYY)"
|
1999-03-28 00:12:05 +03:00
|
|
|
.Cd options WS_KERNEL_FG=WSCOL_XXX
|
1999-03-29 23:54:23 +04:00
|
|
|
.Cd options WS_KERNEL_BG=WSCOL_XXX
|
2000-12-26 16:02:18 +03:00
|
|
|
.Cd options WS_KERNEL_COLATTR=\&"(WSATTR_XXX | WSATTR_YYY)"
|
|
|
|
.Cd options WS_KERNEL_MONOATTR=\&"(WSATTR_XXX | WSATTR_YYY)"
|
|
|
|
.Cd options WSCOMPAT_USL_SYNCTIMEOUT=nnn
|
1999-03-28 00:12:05 +03:00
|
|
|
.Cd options WSDISPLAY_COMPAT_PCVT
|
|
|
|
.Cd options WSDISPLAY_COMPAT_SYSCONS
|
|
|
|
.Cd options WSDISPLAY_COMPAT_USL
|
|
|
|
.Cd options WSDISPLAY_COMPAT_RAWKBD
|
2001-09-12 03:18:55 +04:00
|
|
|
.Pp
|
1999-07-29 22:20:02 +04:00
|
|
|
.Cd "wsdisplay* at ..."
|
|
|
|
.Cd "wskbd* at ... mux N"
|
|
|
|
.Cd "wsmouse* at ... mux N"
|
1998-07-26 21:50:12 +04:00
|
|
|
.Pp
|
2001-09-12 03:18:55 +04:00
|
|
|
.Cd pseudo-device wsmux N
|
1998-07-26 21:50:12 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver provides support for machine independent access to the console.
|
1999-03-28 00:12:05 +03:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
is made of a number of cooperating modules, in particular
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
hardware support for display adapters, keyboards and mice, see
|
|
|
|
.Xr wsdisplay 4 ,
|
|
|
|
.Xr wskbd 4 , and
|
|
|
|
.Xr wsmouse 4
|
|
|
|
.It
|
1999-07-29 22:20:02 +04:00
|
|
|
input event multiplexor, see
|
|
|
|
.Xr wsmux 4
|
|
|
|
.It
|
1999-03-28 00:12:05 +03:00
|
|
|
terminal emulation modules (see below), and
|
|
|
|
.It
|
|
|
|
compatibility options to support control operations and other low-level
|
|
|
|
behaviour of existing terminal drivers (see below)
|
|
|
|
.El
|
2000-10-03 19:10:57 +04:00
|
|
|
.Ss Terminal emulations
|
1999-03-28 00:12:05 +03:00
|
|
|
.Nm
|
2001-11-30 02:14:39 +03:00
|
|
|
does not define its own set of terminal control sequences and special keyboard
|
1999-03-28 00:12:05 +03:00
|
|
|
codes in terms of
|
|
|
|
.Xr termcap 5 .
|
|
|
|
Instead a
|
|
|
|
.Dq terminal emulation
|
2001-11-30 02:14:39 +03:00
|
|
|
is assigned to each virtual screen when the screen is created. (See
|
|
|
|
.Xr wsconscfg 8 . )
|
1999-03-28 00:12:05 +03:00
|
|
|
Different terminal emulations can be active at the same time on one display.
|
|
|
|
The following choices are available:
|
|
|
|
.Bl -tag -width xxxxxx
|
|
|
|
.It dumb
|
|
|
|
This minimal terminal support is available unless the kernel option
|
|
|
|
.Cd 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.
|
|
|
|
.It sun
|
|
|
|
The
|
|
|
|
.Dq sun
|
|
|
|
console emulation is available if
|
|
|
|
.Cd options WSEMUL_SUN
|
|
|
|
was specified at kernel build time. It supports the control sequences of
|
|
|
|
.Tn SUN
|
|
|
|
machine consoles and delivers its keyboard codes for function and
|
2001-11-30 02:14:39 +03:00
|
|
|
keypad keys in use.
|
1999-03-28 00:12:05 +03:00
|
|
|
This emulation is sufficient for full-screen applications.
|
|
|
|
.It vt100
|
|
|
|
is available with the kernel compile option
|
|
|
|
.Cd options WSEMUL_VT100 .
|
|
|
|
It provides the most commonly used functions of
|
|
|
|
.Tn DEC VT100
|
|
|
|
terminals with some extensions introduced by the
|
|
|
|
.Tn DEC VT220
|
|
|
|
and
|
|
|
|
.Tn DEC VT320
|
|
|
|
models. The features of the original
|
|
|
|
.Tn VT100
|
|
|
|
which are not or not completely implemented are:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
.Tn VT52
|
|
|
|
support, 132-column-mode, smooth scroll, light background, keyboard
|
|
|
|
autorepeat control, external printer support, keyboard locking,
|
|
|
|
newline/linefeed switching: Escape sequences related
|
|
|
|
to these features are ignored or answered with standard replies.
|
|
|
|
(DECANM, DECCOLM, DECSCLM, DECSCNM, DECARM, DECPFF, DECPEX, KAM, LNM)
|
|
|
|
.It
|
|
|
|
Function keys are not reprogrammable and fonts can not be downloaded.
|
|
|
|
DECUDK and DECDLD sequences will be ignored.
|
|
|
|
.It
|
|
|
|
Neither C1 control set characters will be recognized nor will 8-bit keyboard
|
|
|
|
codes be delivered.
|
|
|
|
.It
|
|
|
|
The
|
|
|
|
.Dq DEC supplemental graphic
|
|
|
|
font is approximated by the ISO-latin-1 font, though there are
|
|
|
|
subtle differences.
|
|
|
|
.It
|
|
|
|
The actual rendering quality depends on the underlying graphics hardware
|
|
|
|
driver. Characters might be missing in the available fonts and be
|
|
|
|
substituted by more or less fitting replacements.
|
|
|
|
.Pp
|
|
|
|
Depending on the keyboard used, not all function keys might be available.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
In addition to the plain
|
|
|
|
.Tn VT100
|
|
|
|
functions are supported:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
2000-09-21 14:43:49 +04:00
|
|
|
ANSI colors.
|
1999-03-28 00:12:05 +03:00
|
|
|
.It
|
|
|
|
Some
|
|
|
|
.Tn VT220
|
|
|
|
-like presentation state settings and -reports (DECRSPS), especially
|
|
|
|
tabulator settings.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
In most applications,
|
|
|
|
.Nm
|
|
|
|
will work sufficiently as a
|
|
|
|
.Tn VT220
|
|
|
|
emulator.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
1999-07-29 22:20:02 +04:00
|
|
|
.Va WSEMUL_DEFAULT
|
2001-11-30 02:14:39 +03:00
|
|
|
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.
|
1999-03-28 00:12:05 +03:00
|
|
|
for the operating system console or additional screens allocated
|
|
|
|
through the
|
1999-07-29 22:20:02 +04:00
|
|
|
.Va WSDISPLAY_DEFAULTSCREENS
|
1999-03-28 00:12:05 +03:00
|
|
|
option (see
|
2001-09-12 03:18:55 +04:00
|
|
|
.Xr wsdisplay 4 ) ,
|
2000-10-03 19:10:57 +04:00
|
|
|
or if no emulation type was passed to the
|
1999-03-28 00:12:05 +03:00
|
|
|
.Xr wsconscfg 8
|
|
|
|
utility.
|
2000-10-03 19:10:57 +04:00
|
|
|
.Ss Compatibility options
|
2001-11-30 02:14:39 +03:00
|
|
|
these options allow X servers and other programs using low-level
|
1999-03-28 00:12:05 +03:00
|
|
|
console driver functions which were written specifically for other
|
|
|
|
console drivers to run on
|
|
|
|
.Nx
|
|
|
|
systems. The options are in particular:
|
|
|
|
.Bl -tag -width xxxxxxxx
|
|
|
|
.It Cd WSDISPLAY_COMPAT_USL
|
|
|
|
Support the protocol for switches between multiple virtual screens on
|
|
|
|
one display as used by most PC-UNIX variants.
|
|
|
|
.It Cd WSDISPLAY_COMPAT_RAWKBD
|
|
|
|
Allows to get raw XT keyboard scancodes from PC keyboards as needed
|
|
|
|
by i386 X servers.
|
|
|
|
.It Cd WSDISPLAY_COMPAT_PCVT
|
|
|
|
Emulates enough of the
|
2000-10-03 19:10:57 +04:00
|
|
|
.Nx Ns /i386
|
1999-03-28 00:12:05 +03:00
|
|
|
.Dq pcvt
|
|
|
|
driver to make X servers work.
|
|
|
|
.It Cd WSDISPLAY_COMPAT_SYSCONS
|
2000-09-21 14:43:49 +04:00
|
|
|
Emulates enough of the
|
|
|
|
.Fx
|
1999-03-28 00:12:05 +03:00
|
|
|
.Dq syscons
|
2000-09-21 14:43:49 +04:00
|
|
|
driver to make X servers work. Useful with
|
|
|
|
.Fx
|
|
|
|
binary emulation.
|
1999-03-28 00:12:05 +03:00
|
|
|
.El
|
|
|
|
.Pp
|
2001-11-30 02:14:39 +03:00
|
|
|
Linux/i386 X servers usually run successfully if the first two options are
|
1999-03-28 00:12:05 +03:00
|
|
|
enabled together with the
|
|
|
|
.Nx
|
|
|
|
Linux binary emulation.
|
|
|
|
.Pp
|
|
|
|
(To have programs looking for device special files of other console drivers
|
|
|
|
find the
|
|
|
|
.Nm
|
|
|
|
driver entry points, symlinks are a helpful measure.)
|
2000-10-03 19:10:57 +04:00
|
|
|
.Ss Other options
|
1999-03-29 23:54:23 +04:00
|
|
|
.Bl -tag -width xxxxxxxx
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.It Cd options WS_DEFAULT_FG=WSCOL_XXX ,
|
|
|
|
.It Cd options WS_DEFAULT_BG=WSCOL_XXX ,
|
|
|
|
.It Cd options \&WS_DEFAULT_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
|
1999-03-29 23:54:23 +04:00
|
|
|
and
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.It Cd options \&WS_DEFAULT_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
|
|
|
|
allow to make default console output appear in specific colors and
|
|
|
|
attributes.
|
|
|
|
.Dq WS_DEFAULT_FG
|
1999-03-29 23:54:23 +04:00
|
|
|
and
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.Dq WS_DEFAULT_BG
|
1999-03-29 23:54:23 +04:00
|
|
|
set the foreground / background used on color displays. The
|
|
|
|
.Dq WSCOL_XXX
|
|
|
|
arguments are colors as defined in
|
2003-01-04 21:12:37 +03:00
|
|
|
.Pa src/sys/dev/wscons/wsdisplayvar.h .
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.Dq WS_DEFAULT_COLATTR
|
1999-03-29 23:54:23 +04:00
|
|
|
and
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.Dq WS_DEFAULT_MONOATTR
|
2000-05-02 23:02:28 +04:00
|
|
|
are additional attribute flags used on color or monochrome displays,
|
2000-04-13 15:14:42 +04:00
|
|
|
respectively.
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
The arguments are defined in the same header file.
|
|
|
|
Whether the attributes
|
1999-03-29 23:54:23 +04:00
|
|
|
are supported or not depends on the actually used graphics adapter.
|
|
|
|
These options are ignored by the
|
|
|
|
.Dq dumb
|
|
|
|
terminal emulation.
|
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@.
2004-07-28 16:34:02 +04:00
|
|
|
.It Cd options WS_KERNEL_FG=WSCOL_XXX ,
|
|
|
|
.It Cd options WS_KERNEL_BG=WSCOL_XXX ,
|
|
|
|
.It Cd options \&WS_KERNEL_COLATTR="(WSATTR_XXX | WSATTR_YYY)"
|
|
|
|
and
|
|
|
|
.It Cd options \&WS_KERNEL_MONOATTR="(WSATTR_XXX | WSATTR_YYY)"
|
|
|
|
allow to make console output originating from the kernel appear differently
|
|
|
|
than output from user level programs (via
|
|
|
|
.Pa /dev/console
|
|
|
|
or the specific tty
|
|
|
|
device like
|
|
|
|
.Pa /dev/ttyE0 ) .
|
|
|
|
Their meaning is the same as their
|
|
|
|
.Sq WS_DEFAULT_*
|
|
|
|
counterparts.
|
1999-03-29 23:54:23 +04:00
|
|
|
.It Cd options WSCOMPAT_USL_SYNCTIMEOUT=nnn
|
|
|
|
The virtual screen switching protocol enabled by
|
|
|
|
.Dq WSDISPLAY_COMPAT_USL
|
|
|
|
uses a somewhat complex handshake protocol to pass control to user programs
|
2001-11-30 02:14:39 +03:00
|
|
|
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.
|
1999-03-29 23:54:23 +04:00
|
|
|
.El
|
1998-07-26 21:50:12 +04:00
|
|
|
.Sh SEE ALSO
|
1999-03-22 22:15:01 +03:00
|
|
|
.Xr wsdisplay 4 ,
|
|
|
|
.Xr wskbd 4 ,
|
|
|
|
.Xr wsmouse 4 ,
|
1999-07-29 22:20:02 +04:00
|
|
|
.Xr wsmux 4 ,
|
1999-02-04 00:27:02 +03:00
|
|
|
.Xr wsconscfg 8 ,
|
|
|
|
.Xr wsconsctl 8 ,
|
2002-09-18 15:56:28 +04:00
|
|
|
.Xr wsfontload 8 ,
|
|
|
|
.Xr wscons 9
|