Support for more video modes: accept mode names like MODE_<NUMBER> where
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 25 Apr 2004 06:35:32 +0000 (06:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 25 Apr 2004 06:35:32 +0000 (06:35 +0000)
commit6a0d37dfd18371fedb3665b3a469f2bb7eb0e178
tree161e560a1320302a9db31124f46ff1af4040dd1c
parent2abf3a2c76e8e1c6027f8922aba25357f1fcef4d
Support for more video modes: accept mode names like MODE_<NUMBER> where
<NUMBER> is the video mode number from the vidcontrol -i mode output.
MODE_13 is 320x200, for example...

Change the default geometry of raster modes: calculate rows and columns
using the font width and height. This results in the row * col geometry
being as large as possible if no geometry is specified by the user. If
no font is specified the current font's height is used. The old
vidcontrol used a default geometry of 80x25 for raster modes.

Remove restrictions on the range of background colors for graphics modes.

Implement a cleaner revert mechanism: in case something goes wrong we
restore the previous settings and give a message telling what exactly
went wrong. Unfortunately, there are several parameters that cannot
(yet) be saved and restored due to restrictions in the syscons driver:
screen saver timeout, cursor type, mouse character, mouse show/hide
state, vty switching on/off state, history buffer size and history
buffer contents are not saved because the syscons driver doesn't provide
ioctl()s to read those parameters. Font maps are not restored because
the syscons driver won't let us load a font map without setting it.

Submitted-by: Sascha Wildner <saw@online.de>
usr.sbin/vidcontrol/vidcontrol.1
usr.sbin/vidcontrol/vidcontrol.c