Sign in Join
Wiki copytemporary

svgalib

English · Español

Overview

Under Linux/BSD, you can use libvga to access the graphical screen from the console. Free Pascal has a unit which makes linking to the libvga possible. You can find the unit, as well as a makefile and some test programs here. You just need to compile it, put a reference to it in your program or unit, and that is it. There are 2 units in this package:

Requirements

To use this unit, you need at least:

Installation

The svga lib unit comes with the packages of Free Pascal. This contains a subdirectory svgalib. Change to this directory.

Edit the makefile to suit your setup (compiler, options, where do you want to install) type

text
make

and all units will be compiled. Then type

text
make install

To install the units.

Testing

Two small testprograms have been provided:

typing

text
make test

will compile the programs.

Caveats

It is possible that you must be root to run these programs, The SVGAlib docs I have aren't clear about that. If the programs should be able run as another user, you should make them setuid root. I tested everything as root, and it ran smoothly, your mileage may vary, however.

Future Plans

It would be nice to have a borland style GRAPH unit wrapped around this; just for beginners or people who wish to port some old DOS code.

Go to back Packages List


From the Free Pascal wiki, page "svgalib", as it stood on 2015-07-06 after a change by Iskraelectrica, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Edited on wiki.freepascal.org by 4 people, 2009–2015

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
MarcovNew page: == Overview == Under Linux/BSD, you can use libvga to access the graphical screen from the console. Free Pascal has a unit which makes linking to the libvga possible. You can find the unit...
Jwdietrich
BigChimp
Iskraelectrica

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.