Felisp
84436a5ae0
http://my.svgalib.org/svgalib/svgalib-1.9.25.tar.gz http://my.svgalib.org/svgalib/
94 lines
2.5 KiB
Groff
94 lines
2.5 KiB
Groff
.TH eventtest 6 "8 April 1998" "Svgalib 1.3.0" "Svgalib User Manual"
|
|
.SH NAME
|
|
eventtest \- test the waitevent function of svgalib
|
|
.SH SYNOPSIS
|
|
|
|
.B eventtest
|
|
|
|
.SH DESCRIPTION
|
|
This is a kind of an upgraded
|
|
.BR keytest "(6) and " mousetest (6)
|
|
demo using the
|
|
.BR vga_waitevent (3)
|
|
function.
|
|
|
|
Use mouse to move cursor.
|
|
.BR <1> - <9> ", " <0>
|
|
to set the cursor size.
|
|
.B <Space>
|
|
to change
|
|
the cursor color. Left button to draw. Right button or
|
|
.B <Q>
|
|
to bailout.
|
|
|
|
The cursor goes on/off every half second by usage of a
|
|
.I timeout
|
|
passed to
|
|
.BR vga_waitevent (3).
|
|
Every 5 seconds a string from a child process (the time)
|
|
arrives asynchronously and is displayed by the frontend. This comes
|
|
in through a
|
|
.BR pipe (2)
|
|
which is monitored by
|
|
.BR vga_waitevent (2).
|
|
|
|
You can set a videomode
|
|
to use by setting the environment variable
|
|
.B 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
|
|
.I 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
|
|
.B make
|
|
in the
|
|
.I demos/
|
|
subdirecty. As of this writing,
|
|
.I svgalib-1.2.12.tar.gz
|
|
is the latest version and can be retrieved by ftp from
|
|
.IR "sunsite.unc.edu" " at " "/pub/Linux/libs/graphics"
|
|
and
|
|
.IR "tsx-11.mit.edu" " at " "/pub/linux/sources/libs"
|
|
which will most probably be mirrored by a site close to you.
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR svgalib (7),
|
|
.BR vgagl (7),
|
|
.BR libvga.config (5),
|
|
.BR vga_waitevent (3),
|
|
.BR threed (6),
|
|
.BR accel (6),
|
|
.BR bg_test (6),
|
|
.BR forktest (6),
|
|
.BR fun (6),
|
|
.BR keytest (6),
|
|
.BR mousetest (6),
|
|
.BR scrolltest (6),
|
|
.BR speedtest (6),
|
|
.BR spin (6),
|
|
.BR testaccel (6),
|
|
.BR testgl (6),
|
|
.BR testlinear (6),
|
|
.BR vgatest (6),
|
|
.BR plane (6),
|
|
.BR wrapdemo (6)
|
|
|
|
.SH AUTHOR
|
|
|
|
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The
|
|
demos as well as the
|
|
.BR vga_waitevent (3)
|
|
function is due to him.
|