Sign in Join
Wiki copytemporary

svgalib: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Overview
22
33Under 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:
44
55- **svgalib** the actual libvha interface.
66- **vgamouse** mouse extensions to work with the mouse under svgalib.
77
88## Requirements
99
1010To use this unit, you need at least:
1111
1212- Free Pascal 0.99.5 or higher
1313- libsvga 1.2.10 or higher
1414
1515## Installation
1616
1717The svga lib unit comes with the packages of Free Pascal. This contains a subdirectory svgalib. Change to this directory.
1818
1919Edit the makefile to suit your setup (compiler, options, where do you want to install) type
2020
21-`make`
21+```text
22+make
23+```
2224
2325and all units will be compiled. Then type
2426
25-`make install`
27+```text
28+make install
29+```
2630
2731To install the units.
2832
2933## Testing
3034
3135Two small testprograms have been provided:
3236
3337- **vgatest** : This is a translation of the C program that comes with svgalib.
3438- **testvga** : A Small program to demonstrate that you can draw lines on the screen in any mode.
3539
3640typing
3741
38-`make test`
42+```text
43+make test
44+```
3945
4046will compile the programs.
4147
4248## Caveats
4349
4450It 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.
4551
4652## Future Plans
4753
4854It 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.
4955
5056Go to back [[Package List|Packages List]]
5157
5258---
5359*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](/wiki-contact).*
5460Category: Linux
5561Category: Packages
5662Category: Unix

Back to history