From 3644e2839bdb7e633fe93806d70659af8db86b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Thu, 15 Sep 1994 07:28:06 +0000 Subject: [PATCH] Added support for some of the new video modes in syscons. Reviewed by: Submitted by: Obtained from: --- usr.sbin/vidcontrol/vidcontrol.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c index 3278f921092a..8a2cab3e576d 100644 --- a/usr.sbin/vidcontrol/vidcontrol.c +++ b/usr.sbin/vidcontrol/vidcontrol.c @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: vidcontrol.c,v 1.4 1994/05/26 04:13:59 jkh Exp $ + * $Id: vidcontrol.c,v 1.1 1994/08/17 09:00:13 sos Exp $ */ #include @@ -293,10 +293,18 @@ video_mode(int argc, char **argv, int *index) int mode; if (*index < argc) { - if (!strcmp(argv[*index], "80x25")) - mode = CONS_80x25TEXT; - else if (!strcmp(argv[*index], "80x50")) - mode = CONS_80x50TEXT; + if (!strcmp(argv[*index], "VGA_40x25")) + mode = SW_VGA_C40x25; + else if (!strcmp(argv[*index], "VGA_80x25")) + mode = SW_VGA_C80x25; + else if (!strcmp(argv[*index], "VGA_80x50")) + mode = SW_VGA_C80x50; + else if (!strcmp(argv[*index], "VGA_320x200")) + mode = SW_VGA_CG320; + else if (!strcmp(argv[*index], "EGA_80x25")) + mode = SW_ENH_C80x25; + else if (!strcmp(argv[*index], "EGA_80x43")) + mode = SW_ENH_C80x43; else return; if (ioctl(0, mode, NULL) < 0) @@ -386,7 +394,9 @@ test_frame() usage() { fprintf(stderr, -"Usage: vidcontrol mode (available modes: 80x25, 80x50)\n" +"Usage: vidcontrol mode (available modes: VGA_40x25, VGA_80x25,\n" +" VGA_80x50, VGA_320x200,\n" +" EGA_80x25, EGA_80x43)\n" " show (show available colors)\n" " fgcol bgcol (set fore- & background colors)\n" " -r fgcol bgcol (set reverse fore- & background colors)\n"