NetBSD/sbin
jmmv 92f81ea7d3 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 12:34:02 +00:00
..
atactl
badsect
bim
brconfig
ccdconfig
cgdconfig Add options to SYNOPSIS. 2004-07-04 17:19:57 +00:00
chkconfig
clri
disklabel Warn overlapping partitions (except the one marked as FS_UNUSED). 2004-07-13 21:23:13 +00:00
dkctl
dmesg Bump date for previous; add comma in SEE ALSO; use Dv instead of Em. 2004-04-30 16:11:03 +00:00
dump Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD. 2004-05-25 14:54:55 +00:00
dump_lfs Add description for -l, from dump(8). 2004-07-13 17:08:50 +00:00
edlabel
fastboot
fdisk s/Nm/Nx/, as it's NetBSD that has ports, not fdisk. 2004-07-13 19:24:03 +00:00
fsck Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
fsck_ext2fs Remove option letter from getopt string, since it does not 2004-05-13 00:18:46 +00:00
fsck_ffs Reduce memory usage slightly. 2004-07-20 15:05:32 +00:00
fsck_lfs zero-out dinode is not a proper way to 'clear' an lfs inode. 2004-07-18 20:51:30 +00:00
fsck_msdos
fsdb
fsirand
ifconfig err -> errx where appropriate. 2004-07-27 14:25:19 +00:00
init clear_session_logs is not needed when we are small. 2004-06-06 01:42:20 +00:00
ldconfig
lmcctl
mbrlabel
mknod Completely rework how tools/compat is done. Purge all uses/references to 2004-06-20 22:20:14 +00:00
modload Remove an extraneous comment before main() that seems to have been 2004-06-28 19:27:06 +00:00
modunload
mount Print fsid on verbose printing. It is useful when debugging nfs. 2004-04-30 00:48:07 +00:00
mount_ados
mount_cd9660
mount_ext2fs
mount_fdesc
mount_ffs
mount_filecore Sync usage with reality. Closes PR 25915 by Kouichirou Hiratsuka. 2004-06-25 14:48:01 +00:00
mount_kernfs
mount_lfs Add -b and -N to usage. Use getprogname. 2004-07-06 16:39:37 +00:00
mount_msdos
mount_nfs Came in here to add nfsstat(1) reference in SEE ALSO, 2004-05-05 00:21:00 +00:00
mount_ntfs s/the the/the/ (only in sources that aren't regularly imported from 2004-04-23 02:58:27 +00:00
mount_null Fix SEE ALSO; remove .sp; put .Pp before sentences. 2004-06-10 14:13:36 +00:00
mount_overlay Fix SEE ALSO; remove .sp; put .Pp before sentences. 2004-06-10 14:13:36 +00:00
mount_portal
mount_procfs
mount_smbfs
mount_umap
mount_union
newbtconf
newfs Minimally document -d; addresses second part of 2004-06-25 14:44:40 +00:00
newfs_lfs
newfs_msdos Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
nologin
pdisk
pfctl PF from openbsd 3.5 2004-06-22 15:16:29 +00:00
ping add -h option in synopsis. Fixes PR#25863 from Kouichirou Hiratsuka. 2004-06-08 08:05:30 +00:00
ping6 correct mistake in usage(). Chris Pinnock 2004-06-09 01:59:20 +00:00
pppoectl
raidctl Use Dq instead of quotes; bump date for previous. 2004-05-24 00:08:04 +00:00
rcorder
reboot
resize_ffs
restore Add -D to usage; shorten -b argument for usage's sake; format usage. 2004-07-27 14:20:11 +00:00
rndctl
route bump buffer size for any_ntoa(), for huge sa_len 2004-05-15 14:13:36 +00:00
routed PR 9431: if rnh_addradd() fails, total_routes will be wrong. 2004-07-06 23:36:24 +00:00
rtsol
savecore Fix an integer overflow that prevented saving cores from machines with 2004-07-14 07:26:12 +00:00
scsictl Increase the SCSI command timeout for device start & stop from 10 2004-06-01 02:40:00 +00:00
setkey ignore promiscuous messages by checking sadb_msg_pid. 2004-07-23 12:47:55 +00:00
shutdown
slattach
swapctl Drop trailing whitespace. 2004-06-08 15:53:05 +00:00
sysctl Bump date for last. 2004-04-28 20:28:39 +00:00
ttyflags
tunefs Remove removed options from usage. From Kouichirou Hiratsuka in PR 25874. 2004-06-25 14:35:29 +00:00
umount Call -t argument fstypelist, to be in sync with code 2004-04-21 22:31:16 +00:00
veriexecctl
vinum
wdogctl
wsconsctl Implement support to dynamically change wscons console and kernel colors. 2004-07-28 12:34:02 +00:00
Makefile PF from openbsd 3.5 2004-06-22 15:16:29 +00:00
Makefile.inc