A simple program to test mouse functionality.
This uses basic VGA functionality (or an
svga mode you specify, you should stick to 256 color modes).
The proper setup mouse should move the cursor (drawing spots in the
current color). Left button changes color, right button (or
<Ctrl>-C)
aborts.
You can set a videomode
to use by setting the environment variable
SVGALIB_DEFAULT_MODE
to a number (see vgatest
for a list) or a string like G0x1x2 where you replace 0 with desired x
resolution, 1 with the desired y rez, and 2 with the desired number of
colors (2, 16, 256, 32K, 64K, 16M, 16M4). Again, only certain choices are
available, see vgatest for a list.
In case nothing is selected, G320x200x256 is choosen.
This demo is part of svgalib and can be found in the
demos/
subdirectory of the original svgalib distribution. However, it is not installed in the system
by default, s.t. it is unclear where you can find it if your svgalib was installed by some
linux distribution. Even then, when you have the demo on your system, you probably won't have
the sources s.t. it is only of limited use for you.
In case of any such problem, simply get an svgalib distribution from the net. You even
don't need to install it. Just
make
in the
demos/
subdirecty. As of this writing,
svgalib-1.2.12.tar.gz
is the latest version and can be retrieved by ftp from
sunsite.unc.edu at /pub/Linux/libs/graphics
and
tsx-11.mit.edu at /pub/linux/sources/libs
which will most probably be mirrored by a site close to you.