Implement border color customization in wscons(4), only available for vga(4)
at the moment.
This includes the addition of two new wsdisplay ioctls, WSDISPLAY_{G,S}BORDER,
one to get the actual color and one to set it, respectively. Possible colors
match those defined by ANSI (and listed in wsdisplayvar.h).
It also adds two accessops to the underlying graphics device, getborder and
setborder, which mach their ioctl counterparts.
Two kernel options are added: WSDISPLAY_CUSTOM_BORDER, which enables the
ioctls described above (to customize the border color from userland after
boot), and WSDISPLAY_BORDER_COLOR, which sets the color at boot time.
The former is enabled by default on the GENERIC kernel, but not on INSTALL
(among others). The later is always commented out, leaving the usual black
border as a default.
wsconsctl is modified to allow accessing this value easily. For example,
'wsconsctl -d -w border=blue'.
2004-07-30 02:29:35 +04:00
|
|
|
# $NetBSD: files.wscons,v 1.33 2004/07/29 22:29:37 jmmv Exp $
|
1998-03-22 17:24:02 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# "Workstation Console" glue; attaches frame buffer to emulator & keyboard,
|
|
|
|
# plus deals with kernel mouse drivers.
|
|
|
|
#
|
|
|
|
# These files are included with strange conditions because of the hairy
|
|
|
|
# interactions between them. In particular, chunks of the glue,
|
|
|
|
# keyboard, and mouse code are called directly by other chunks. Also,
|
|
|
|
# each hardware driver can make calls into its (child) interface driver.
|
|
|
|
# This could all be cleaned up, but it's not clear that it's worth the
|
|
|
|
# trouble.
|
|
|
|
#
|
|
|
|
|
2001-11-20 17:34:18 +03:00
|
|
|
defparam opt_wsemul.h WSEMUL_DEFAULT
|
2001-11-28 13:21:10 +03:00
|
|
|
defflag opt_wsemul.h WSEMUL_NO_DUMB WSEMUL_SUN WSEMUL_VT100
|
Implement border color customization in wscons(4), only available for vga(4)
at the moment.
This includes the addition of two new wsdisplay ioctls, WSDISPLAY_{G,S}BORDER,
one to get the actual color and one to set it, respectively. Possible colors
match those defined by ANSI (and listed in wsdisplayvar.h).
It also adds two accessops to the underlying graphics device, getborder and
setborder, which mach their ioctl counterparts.
Two kernel options are added: WSDISPLAY_CUSTOM_BORDER, which enables the
ioctls described above (to customize the border color from userland after
boot), and WSDISPLAY_BORDER_COLOR, which sets the color at boot time.
The former is enabled by default on the GENERIC kernel, but not on INSTALL
(among others). The later is always commented out, leaving the usual black
border as a default.
wsconsctl is modified to allow accessing this value easily. For example,
'wsconsctl -d -w border=blue'.
2004-07-30 02:29:35 +04:00
|
|
|
defflag opt_wsdisplay_border.h WSDISPLAY_CUSTOM_BORDER
|
|
|
|
defparam opt_wsdisplay_border.h WSDISPLAY_BORDER_COLOR
|
2004-07-28 19:12:07 +04:00
|
|
|
defflag opt_wsmsgattrs.h WSDISPLAY_CUSTOM_OUTPUT
|
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
|
|
|
defparam opt_wsmsgattrs.h WS_DEFAULT_COLATTR WS_DEFAULT_MONOATTR
|
|
|
|
WS_DEFAULT_BG WS_DEFAULT_FG
|
2001-11-20 17:34:18 +03:00
|
|
|
WS_KERNEL_COLATTR WS_KERNEL_MONOATTR
|
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
|
|
|
WS_KERNEL_BG WS_KERNEL_FG
|
2004-05-29 01:42:29 +04:00
|
|
|
WSDISPLAY_SCROLLCOMBO
|
2003-04-02 22:22:56 +04:00
|
|
|
defparam opt_wsemul.h WSEMUL_VT100_HILIT_FG WSEMUL_VT100_UNDERLINE_FG
|
|
|
|
WSEMUL_VT100_HILIT_BG WSEMUL_VT100_UNDERLINE_BG
|
2001-11-28 13:21:10 +03:00
|
|
|
defflag opt_wsdisplay_compat.h WSDISPLAY_COMPAT_USL
|
2001-11-20 17:34:18 +03:00
|
|
|
WSDISPLAY_COMPAT_RAWKBD
|
|
|
|
WSDISPLAY_COMPAT_PCVT WSDISPLAY_COMPAT_SYSCONS
|
2002-06-27 03:05:33 +04:00
|
|
|
WSDISPLAY_CHARFUNCS
|
2001-11-20 17:34:18 +03:00
|
|
|
WSCONS_SUPPORT_PCVTFONTS
|
|
|
|
WSCONS_SUPPORT_ISO7FONTS
|
2004-05-29 01:42:29 +04:00
|
|
|
WSDISPLAY_SCROLLSUPPORT
|
2001-11-20 17:34:18 +03:00
|
|
|
defparam opt_wsdisplay_compat.h WSCOMPAT_USL_SYNCTIMEOUT
|
|
|
|
WSDISPLAY_DEFAULTSCREENS
|
1998-04-17 04:17:27 +04:00
|
|
|
|
1998-03-22 17:24:02 +03:00
|
|
|
# this loses, but there's no way to define attributes which have attributes
|
|
|
|
device wsdisplay #tty?
|
|
|
|
attach wsdisplay at wsemuldisplaydev with wsdisplay_emul
|
|
|
|
attach wsdisplay at wsdisplaydev with wsdisplay_noemul
|
|
|
|
device wskbd
|
|
|
|
attach wskbd at wskbddev
|
|
|
|
device wsmouse
|
|
|
|
attach wsmouse at wsmousedev
|
|
|
|
|
2001-02-24 04:59:46 +03:00
|
|
|
file dev/wscons/wsdisplay.c wsdisplay needs-flag
|
|
|
|
file dev/wscons/wsdisplay_compat_usl.c wsdisplay & wsdisplay_compat_usl
|
1999-05-14 20:01:11 +04:00
|
|
|
file dev/wscons/wsemulconf.c wsdisplay
|
|
|
|
file dev/wscons/wsemul_dumb.c wsdisplay & !wsemul_no_dumb
|
|
|
|
file dev/wscons/wsemul_sun.c wsdisplay & wsemul_sun
|
|
|
|
file dev/wscons/wsemul_vt100.c wsdisplay & wsemul_vt100
|
|
|
|
file dev/wscons/wsemul_vt100_subr.c wsdisplay & wsemul_vt100
|
|
|
|
file dev/wscons/wsemul_vt100_chars.c wsdisplay & wsemul_vt100
|
|
|
|
file dev/wscons/wsemul_vt100_keys.c wsdisplay & wsemul_vt100
|
2002-07-02 16:59:39 +04:00
|
|
|
file dev/wscons/wsevent.c wsdisplay | wskbd | wsmouse | wsmux
|
2001-02-24 04:59:46 +03:00
|
|
|
file dev/wscons/wskbd.c wskbd needs-flag
|
|
|
|
file dev/wscons/wskbdutil.c wskbd needs-flag
|
|
|
|
file dev/wscons/wsmouse.c wsmouse needs-flag
|
1998-03-22 17:24:02 +03:00
|
|
|
|
1999-03-27 03:07:58 +03:00
|
|
|
# rcons bit-depth options
|
2001-10-06 02:08:28 +04:00
|
|
|
include "dev/rcons/files.rcons"
|
1999-03-27 03:07:58 +03:00
|
|
|
|
2001-02-24 04:59:46 +03:00
|
|
|
file dev/wscons/wscons_rinit.c wsrasteremulops
|
|
|
|
file dev/wscons/wscons_rops.c wsrasteremulops
|
1999-07-29 22:20:02 +04:00
|
|
|
|
|
|
|
defpseudo wsmux
|
2001-10-24 18:07:31 +04:00
|
|
|
file dev/wscons/wsmux.c wsmux needs-flag
|
2004-05-28 21:52:06 +04:00
|
|
|
|
|
|
|
define tpcalib
|
|
|
|
file dev/wscons/tpcalib.c tpcalib
|
|
|
|
file dev/wscons/mra.c tpcalib
|