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 Print the raw SMART values always. These are important in a bunch of cases -- 2004-03-28 01:23:15 +00:00
badsect Don't require ffsv2 suberblocks to have FS_FLAGS_UPDATED set 2004-03-27 12:52:16 +00:00
bim Fix "variable shadows global declaration" warnings. 2003-11-12 06:45:14 +00:00
brconfig realloc pedant 2003-09-19 08:35:15 +00:00
ccdconfig Support CCDF_NOLABEL. Document what CCDF_UNIFORM actually does. 2003-10-17 05:23:56 +00:00
cgdconfig Add options to SYNOPSIS. 2004-07-04 17:19:57 +00:00
chkconfig Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
clri Don'r check FS_FLAGS_UPDATED for ffsv2 2004-03-27 12:53:53 +00:00
disklabel Warn overlapping partitions (except the one marked as FS_UNUSED). 2004-07-13 21:23:13 +00:00
dkctl Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
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 use snprintf 2003-05-17 23:10:57 +00:00
fastboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
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 Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
fsdb Standardize flags display in usage. 2004-01-04 00:13:00 +00:00
fsirand Don't use 1st alternate superblock at offset 64k for ffsv1. 2004-03-21 20:12:16 +00:00
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 Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
lmcctl Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
mbrlabel Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
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 New sentence, new line; drop trailing whitespace. 2003-09-06 20:12:41 +00:00
mount Print fsid on verbose printing. It is useful when debugging nfs. 2004-04-30 00:48:07 +00:00
mount_ados print masks and modes in octal. 2003-05-03 15:37:07 +00:00
mount_cd9660 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_ext2fs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_fdesc Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_ffs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_filecore Sync usage with reality. Closes PR 25915 by Kouichirou Hiratsuka. 2004-06-25 14:48:01 +00:00
mount_kernfs add /kern/ipsecsa and /kern/ipsecsp, which can be inspected by setkey(8). 2003-09-08 06:51:53 +00:00
mount_lfs Add -b and -N to usage. Use getprogname. 2004-07-06 16:39:37 +00:00
mount_msdos Remove extra newline from usage message. 2004-01-05 23:27:16 +00:00
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 unifdef -DINET6. getaddrinfo will always be there, so there's no point in 2004-03-01 23:01:18 +00:00
mount_procfs Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_smbfs install the example dot.nsmbrc 2003-04-04 07:50:43 +00:00
mount_umap Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
mount_union Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
newbtconf Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
newfs Minimally document -d; addresses second part of 2004-06-25 14:44:40 +00:00
newfs_lfs remove definitions for ffs, which don't belong here. 2003-12-17 05:08:43 +00:00
newfs_msdos Replace the statfs() family of system calls with statvfs(). 2004-04-21 01:05:31 +00:00
nologin Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
pdisk remove workaround for missing errno.h include 2002-08-22 22:38:05 +00:00
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 Spell length with h after t. Inspired by a commit by brad@openbsd. 2004-02-13 18:02:05 +00:00
raidctl Use Dq instead of quotes; bump date for previous. 2004-05-24 00:08:04 +00:00
rcorder Move Matt Green's code from a 4-clause to a 3-clause licence by removing 2003-10-13 14:22:20 +00:00
reboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
resize_ffs Dunno why this code is playing 'hunt the superblock', but stop it 2004-03-21 21:02:01 +00:00
restore Add -D to usage; shorten -b argument for usage's sake; format usage. 2004-07-27 14:20:11 +00:00
rndctl strlcat 2003-07-13 07:59:24 +00:00
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 rtsol: factor out dump.c if -DSMALL (for boot floppy) 2004-01-03 01:40:31 +00:00
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 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
slattach Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
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 use strlcat/strlcpy 2003-07-12 14:33:55 +00:00
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 Bump date for previous. 2004-03-06 23:38:40 +00:00
vinum Don't initialize an int to NULL. 2003-10-21 02:33:34 +00:00
wdogctl Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
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 Revert previous; the change that required it will be done differently. 2002-09-27 21:04:46 +00:00