92f81ea7d3
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@. |
||
---|---|---|
.. | ||
atactl | ||
badsect | ||
bim | ||
brconfig | ||
ccdconfig | ||
cgdconfig | ||
chkconfig | ||
clri | ||
disklabel | ||
dkctl | ||
dmesg | ||
dump | ||
dump_lfs | ||
edlabel | ||
fastboot | ||
fdisk | ||
fsck | ||
fsck_ext2fs | ||
fsck_ffs | ||
fsck_lfs | ||
fsck_msdos | ||
fsdb | ||
fsirand | ||
ifconfig | ||
init | ||
ldconfig | ||
lmcctl | ||
mbrlabel | ||
mknod | ||
modload | ||
modunload | ||
mount | ||
mount_ados | ||
mount_cd9660 | ||
mount_ext2fs | ||
mount_fdesc | ||
mount_ffs | ||
mount_filecore | ||
mount_kernfs | ||
mount_lfs | ||
mount_msdos | ||
mount_nfs | ||
mount_ntfs | ||
mount_null | ||
mount_overlay | ||
mount_portal | ||
mount_procfs | ||
mount_smbfs | ||
mount_umap | ||
mount_union | ||
newbtconf | ||
newfs | ||
newfs_lfs | ||
newfs_msdos | ||
nologin | ||
pdisk | ||
pfctl | ||
ping | ||
ping6 | ||
pppoectl | ||
raidctl | ||
rcorder | ||
reboot | ||
resize_ffs | ||
restore | ||
rndctl | ||
route | ||
routed | ||
rtsol | ||
savecore | ||
scsictl | ||
setkey | ||
shutdown | ||
slattach | ||
swapctl | ||
sysctl | ||
ttyflags | ||
tunefs | ||
umount | ||
veriexecctl | ||
vinum | ||
wdogctl | ||
wsconsctl | ||
Makefile | ||
Makefile.inc |