#!/bin/sh
#	 Modes		   Font size
#     25 line modes   8x16 (VGA), 8x14 (EGA)
#     30 line modes	      8x16
#     43 line modes	      8x8
#     50 line modes	      8x8
#     60 line modes	      8x8
#
#     It is better to always load all three sizes (8x8, 8x14 and 8x16) of the
#     same font.
#
#     You may set variables in /etc/rc.conf or /etc/rc.conf.local so that de-
#     sired font files will be automatically loaded when the system starts up.
#
#     Bug note: vidcontrol(1) produces no error codes other than when it 
#     prints it's 'usage' message. This makes it difficult to find out when
#     one give vidcontrol a bad parameter.
#
vidcontrol show
echo Here we show the video attributes available
echo vidcontrol show
sleep 5

goto test

# Print out current output screen map.
echo Here we show the screen mapping to font characters.
vidcontrol -d
echo vidcontrol -d
sleep 5

# Shows info about the current video adapter.
vidcontrol -i adapter
echo Shows info about the current video adapter.
echo vidcontrol -i adapter
sleep 5

# Shows the possible video modes with the current video hardware.
vidcontrol -i mode
echo vidcontrol -i mode
sleep 5

# Here we try the possible video modes with the current video hardware.
vidcontrol 80x30
echo vidcontrol 80x30
sleep 5

vidcontrol 80x43
echo vidcontrol 80x43
sleep 5

vidcontrol 80x50
echo vidcontrol 80x50
sleep 5

vidcontrol 80x60
echo vidcontrol 80x60
sleep 5

vidcontrol 132x25
echo vidcontrol 132x25
sleep 5

vidcontrol 132x30
echo vidcontrol 132x30
sleep 5

vidcontrol 132x43
echo vidcontrol 132x43
sleep 5

vidcontrol 132x50
echo vidcontrol 132x50
sleep 5

vidcontrol 132x60
echo vidcontrol 132x60
sleep 5

vidcontrol VGA_40x25
echo vidcontrol VGA_40x25
sleep 5

vidcontrol VGA_80x25
echo vidcontrol VGA_80x25
sleep 5

vidcontrol VGA_80x30
echo vidcontrol VGA_80x30
sleep 5

vidcontrol VGA_80x50
echo vidcontrol VGA_80x50
sleep 5

vidcontrol VGA_80x60
echo vidcontrol VGA_80x60
sleep 5

vidcontrol EGA_80x25
echo vidcontrol EGA_80x25
sleep 5

vidcontrol EGA_80x43
echo vidcontrol EGA_80x43
sleep 5

vidcontrol VESA_132x25
echo vidcontrol VESA_132x25
sleep 5

vidcontrol VESA_132x43
echo vidcontrol VESA_132x43
sleep 5

vidcontrol VESA_132x50
echo vidcontrol VESA_132x50
sleep 5

vidcontrol VESA_132x60 
echo vidcontrol VESA_132x60 
sleep 5

vidcontrol VESA_800x600 
echo vidcontrol VESA_800x600 
sleep 5

vidcontrol 80x25
echo returing to 80x25 mode

# Some more cool stuff to try.
#
#     vidcontrol -s number
#	     Set the current vty to number.
#
#     vidcontrol -t N | off
#	     Set the screensaver timeout to N seconds, or turns it off.
#`	
