source: general/graphlib/svgalib.xml@ 85c254f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 85c254f was 85c254f, checked in by Randy McMurchy <randy@…>, 20 years ago

Updated GCC patch in SVGAlib instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2729 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.1 KB
RevLine 
[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
26that provides <acronym>VGA</acronym> and <acronym>SVGA</acronym>
27modes in a console. This is useful for programs running on a console
28that 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]42url="&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
51won't be able to become <acronym>SUID</acronym> root which is required for
52proper operation. However, this raises a risk of exposing your system to any
53holes in those tools that might be used to gain root access, so use with
54caution.</para></note>
[4f6275fd]55
56<para>Install <application>SVGAlib</application> by running the following
57commands:</para>
58
[85c254f]59<screen><userinput><command>patch -Np1 -i ../svgalib-&SVGAlib-version;-gcc34-2.patch &amp;&amp;
[52d29f7]60make prefix=/usr install &amp;&amp;
61cd doc &amp;&amp;
62for dir in man?; do for file in $dir/*; do \
63gunzip /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 &amp;&amp; for dir in man?; do for file in $dir/*; do
71gunzip /usr/share/man/$file; done; done</command>:
[85c254f]72<application>SVGAlib</application> installs its man pages in compressed format.
73This 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
89the configuration files. Edit if necessary. Depending on your hardware, other
90setup 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]103and <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
115graphics library.</para></sect3>
[4f6275fd]116
[52d29f7]117<sect3><title>libvgagl library</title>
118<para><filename class="libraryfile">libvgagl</filename> is a fast
119frame 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
123svgalib 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
135textmode.</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
143restore 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
147svgalib.</para></sect3>
[4f6275fd]148
[52d29f7]149</sect2>
[67b459c]150
151</sect1>
Note: See TracBrowser for help on using the repository browser.