1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY SVGAlib-download-http "http://www.svgalib.org/svgalib-&SVGAlib-version;.tar.gz">
|
---|
8 | <!ENTITY SVGAlib-download-ftp " ">
|
---|
9 | <!ENTITY SVGAlib-size "827 KB">
|
---|
10 | <!ENTITY SVGAlib-buildsize "9.7 MB">
|
---|
11 | <!ENTITY SVGAlib-time "0.20 SBU">
|
---|
12 |
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="SVGAlib" xreflabel="SVGAlib-&SVGAlib-version;">
|
---|
16 | <sect1info>
|
---|
17 | <othername>$LastChangedBy$</othername>
|
---|
18 | <date>$Date$</date>
|
---|
19 | </sect1info>
|
---|
20 | <?dbhtml filename="SVGAlib.html"?>
|
---|
21 | <title>SVGAlib-&SVGAlib-version;</title>
|
---|
22 |
|
---|
23 | <sect2>
|
---|
24 | <title>Introduction to <application>SVGAlib</application></title>
|
---|
25 |
|
---|
26 | <para><application>SVGAlib</application> is a low-level graphics library
|
---|
27 | that provides <acronym>VGA</acronym> and <acronym>SVGA</acronym>
|
---|
28 | modes in a console. This is useful for programs running on a console
|
---|
29 | that require graphics capabilities.</para>
|
---|
30 |
|
---|
31 | <sect3><title>Package information</title>
|
---|
32 | <itemizedlist spacing='compact'>
|
---|
33 | <listitem><para>Download (HTTP): <ulink url="&SVGAlib-download-http;"/></para></listitem>
|
---|
34 | <listitem><para>Download (FTP): <ulink url="&SVGAlib-download-ftp;"/></para></listitem>
|
---|
35 | <listitem><para>Download size: &SVGAlib-size;</para></listitem>
|
---|
36 | <listitem><para>Estimated Disk space required: &SVGAlib-buildsize;</para></listitem>
|
---|
37 | <listitem><para>Estimated build time: &SVGAlib-time;</para></listitem></itemizedlist>
|
---|
38 | </sect3>
|
---|
39 |
|
---|
40 | <sect3><title>Additional downloads</title>
|
---|
41 | <itemizedlist spacing='compact'>
|
---|
42 | <listitem><para>Required Patch: <ulink
|
---|
43 | url="&patch-root;/svgalib-&SVGAlib-version;-gcc3-1.patch"/></para></listitem>
|
---|
44 | </itemizedlist></sect3>
|
---|
45 |
|
---|
46 | </sect2>
|
---|
47 |
|
---|
48 | <sect2>
|
---|
49 | <title>Installation of <application>SVGAlib</application></title>
|
---|
50 |
|
---|
51 | <note><para>You must compile and install as root. If you don't, certain tools
|
---|
52 | won't be able to become <acronym>SUID</acronym> root which is required for
|
---|
53 | proper operation. However, this raises a risk of exposing your system to any
|
---|
54 | holes in those tools that might be used to gain root access, so use with
|
---|
55 | caution.</para></note>
|
---|
56 |
|
---|
57 | <para>Install <application>SVGAlib</application> by running the following
|
---|
58 | commands:</para>
|
---|
59 |
|
---|
60 | <screen><userinput><command>patch -Np1 -i ../svgalib-&SVGAlib-version;-gcc3-1.patch &&
|
---|
61 | make prefix=/usr install &&
|
---|
62 | cd doc &&
|
---|
63 | for dir in man?; do for file in $dir/*; do \
|
---|
64 | gunzip /usr/share/man/$file; done; done</command></userinput></screen>
|
---|
65 |
|
---|
66 | </sect2>
|
---|
67 |
|
---|
68 | <sect2>
|
---|
69 | <title>Command explanations</title>
|
---|
70 |
|
---|
71 | <para><command>cd doc && for dir in man?; do for file in $dir/*; do
|
---|
72 | gunzip /usr/share/man/$file; done; done</command>:
|
---|
73 | <application>SVGAlib</application> installs its man pages in compressed format
|
---|
74 | so we uncompress them.</para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2>
|
---|
79 | <title>Configuring SVGAlib</title>
|
---|
80 |
|
---|
81 | <sect3><title>Config files</title>
|
---|
82 |
|
---|
83 | <para><filename>/etc/vga/libvga.config</filename>,
|
---|
84 | <filename>~/.svgalibrc</filename></para>
|
---|
85 | </sect3>
|
---|
86 |
|
---|
87 | <sect3><title>Configuration information</title>
|
---|
88 |
|
---|
89 | <para>You must edit the config file to set the monitor and mouse type.
|
---|
90 | Depending on your hardware, other setup might be required.</para>
|
---|
91 |
|
---|
92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
93 |
|
---|
94 | </sect3>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <sect2>
|
---|
99 | <title>Contents</title>
|
---|
100 |
|
---|
101 | <para>The SVGAlib package contains <filename class="libraryfile">libvga</filename>
|
---|
102 | and <filename class="libraryfile">libvgagl</filename> libraries,
|
---|
103 | <command>dumpreg</command>, <command>mode3</command>, <command>restorefont</command>,
|
---|
104 | <command>restorepalette</command>, <command>restoretextmode</command>,
|
---|
105 | <command>savetextmode</command>, <command>textmode</command> and
|
---|
106 | <command>svgakeymap</command>.</para>
|
---|
107 |
|
---|
108 | </sect2>
|
---|
109 |
|
---|
110 | <sect2><title>Description</title>
|
---|
111 |
|
---|
112 | <sect3><title>libvga library</title>
|
---|
113 | <para><filename class="libraryfile">libvga</filename> is a low-level
|
---|
114 | graphics library.</para></sect3>
|
---|
115 |
|
---|
116 | <sect3><title>libvgagl library</title>
|
---|
117 | <para><filename class="libraryfile">libvgagl</filename> is a fast
|
---|
118 | frame buffer level graphics library based on libvga.</para></sect3>
|
---|
119 |
|
---|
120 | <sect3><title>dumpreg</title>
|
---|
121 | <para><command>dumpreg</command> dumps the state of the card as the
|
---|
122 | svgalib chipset driver sees it.</para></sect3>
|
---|
123 |
|
---|
124 | <sect3><title>mode3</title>
|
---|
125 | <para><command>mode3</command> sets a <acronym>VESA</acronym> mode.</para></sect3>
|
---|
126 |
|
---|
127 | <sect3><title>restorefont</title>
|
---|
128 | <para><command>restorefont</command> saves or restores the
|
---|
129 | <acronym>SVGA</acronym> font for textmode.</para></sect3>
|
---|
130 |
|
---|
131 | <sect3><title>restorepalette</title>
|
---|
132 | <para><command>restorepalette</command> sets the color palette for
|
---|
133 | textmode.</para></sect3>
|
---|
134 |
|
---|
135 | <sect3><title>restoretextmode</title>
|
---|
136 | <para><command>restoretextmode</command> saves or restores the
|
---|
137 | <acronym>SVGA</acronym> registers for textmode.</para></sect3>
|
---|
138 |
|
---|
139 | <sect3><title>savetextmode, textmode</title>
|
---|
140 | <para><command>savetextmode</command> and <command>textmode</command> save or
|
---|
141 | restore the complete <acronym>SVGA</acronym> status for textmode.</para></sect3>
|
---|
142 |
|
---|
143 | <sect3><title>svgakeymap</title>
|
---|
144 | <para><command>svgakeymap</command> generates keymaps for svgalib.</para></sect3>
|
---|
145 |
|
---|
146 | </sect2>
|
---|
147 |
|
---|
148 | </sect1>
|
---|