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