1vga_getdefaultmode(3) Svgalib User Manual vga_getdefaultmode(3)
2
3
4
6 vga_getdefaultmode - returns the default graphics mode number
7
9 #include <vga.h>
10
11 int vga_getdefaultmode(void);
12
13
15 Returns the default graphics mode number from the SVGALIB_DEFAULT_MODE
16 environment variable. If undefined, the from the default_mode configu‐
17 ration file option. If that is not available as well, returns 10
18 (G640x480x256). The mode value in the environment variable or configu‐
19 ration file can either be a mode number or a mode name. See vga_set‐
20 mode(3) for a list of predefined return values and their meaning. The
21 mode names which can be used in the environment are those used by
22 vga_getmodename(3) and vga_getmodenumber(3).
23
24 Whenever your application has no special need for a given mode you
25 should always try to honour this setting for consistency among svgalib
26 applications.
27
28
30 svgalib(7), vgagl(7), libvga.config(5), vgatest(6), vga_hasmode(3),
31 vga_modeinfo(3), vga_setmode(3), vga_getcurrentmode(3), vga_lastmode‐
32 number(3), vga_getmodename(3), vga_getmodenumber(3)
33
34
36 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
37 essen.de>. The exact source of the referenced function as well as of
38 the original documentation is unknown.
39
40 It is very likely that both are at least to some extent are due to Harm
41 Hanemaayer <H.Hanemaayer@inter.nl.net>.
42
43 Occasionally this might be wrong. I hereby asked to be excused by the
44 original author and will happily accept any additions or corrections to
45 this first version of the svgalib manual.
46
47
48
49Svgalib 1.3.0 8 April 1998 vga_getdefaultmode(3)