Home | History | Annotate | Download | only in wsconsctl
History log of /src/sbin/wsconsctl/display.c
RevisionDateAuthorComments
 1.19  20-Oct-2024  mlelstv Handle EDID data larger than 256 bytes.
 1.18  20-Oct-2024  mlelstv Retrieve configured console font with WSDISPLAYIO_GFONT.
 1.17  25-Dec-2021  mlelstv branches: 1.17.4;
Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
 1.16  20-Mar-2012  matt Convert to C89 function definitions
 1.15  28-Apr-2008  martin branches: 1.15.20;
Remove clause 3 and 4 from TNF licenses
 1.14  13-Aug-2006  uwe branches: 1.14.18; 1.14.20;
Mark splash.enable and splash.progress write-only, there are no ioctls
to get the values.
 1.13  18-Feb-2006  jmcneill branches: 1.13.2;
Add the ability to control the splash screen.
wsconsctl -d -w splash.enable=<1|0> to toggle the splash screen, and
wsconsctl -d -w splash.progress=1 to update the splash animation
 1.12  05-Feb-2006  jmmv Style fixes:
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
 1.11  30-Apr-2005  jmmv Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.

Thanks to uwe@ for finding this out and explaining me why it was wrong.
 1.10  27-Feb-2005  uwe branches: 1.10.2;
Support backlight, brightness and contrast wsdisplay paramteres.
Useful for hpc* ports.
 1.9  19-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype; WARNS=2
 1.8  30-Jul-2004  jmmv Add 2004 to copyright notice as these has been significantly modified recently.
 1.7  30-Jul-2004  jmmv Do not show several variables when they are not available.

At the moment this only affects the display part, hiding console colors,
border color and/or console scrollback if their respective ioctls are
not supported by the running kernel.

Trying to write to these variables will still fail with the correct ioctl
error message.
 1.6  29-Jul-2004  jmmv 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'.
 1.5  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.4  03-Jun-2004  christos If scrolling support is not compiled in the kernel, fail gracefully.
 1.3  28-May-2004  christos PR/19925: David Ferlier: add scrolling support to wscons
 1.2  07-Apr-2002  hannken branches: 1.2.4;
Allow setting display's font.
 1.1  28-Dec-1998  hannken wsconsctl(8) - a program to manipulate wscons devices.

- lacks wsdisplay support (driver needs work on ioctls).
- man page needs work.
 1.2.4.2  07-Jun-2004  tron Pull up revision 1.4 (requested by recht in ticket #451):
If scrolling support is not compiled in the kernel, fail gracefully.
 1.2.4.1  07-Jun-2004  tron Pull up revision 1.3 (requested by recht in ticket #451):
PR/19925: David Ferlier: add scrolling support to wscons
 1.10.2.1  01-May-2005  tron Pull up revision 1.11 (requested by jmmv in ticket #227):
Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.
Thanks to uwe@ for finding this out and explaining me why it was wrong.
 1.13.2.1  14-Aug-2006  ghen Pull up following revision(s) (requested by uwe in ticket #22):
sbin/wsconsctl/display.c: revision 1.14
Mark splash.enable and splash.progress write-only, there are no ioctls
to get the values.
 1.14.20.1  18-May-2008  yamt sync with head.
 1.14.18.1  02-Jun-2008  mjf Sync with HEAD.
 1.15.20.1  17-Apr-2012  yamt sync with head
 1.17.4.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed