svgalib: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ## Overview | |
| 2 | 2 | ||
| 3 | 3 | 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: | |
| 4 | 4 | ||
| 5 | 5 | - **svgalib** the actual libvha interface. | |
| 6 | 6 | - **vgamouse** mouse extensions to work with the mouse under svgalib. | |
| 7 | 7 | ||
| 8 | 8 | ## Requirements | |
| 9 | 9 | ||
| 10 | 10 | To use this unit, you need at least: | |
| 11 | 11 | ||
| 12 | 12 | - Free Pascal 0.99.5 or higher | |
| 13 | 13 | - libsvga 1.2.10 or higher | |
| 14 | 14 | ||
| 15 | 15 | ## Installation | |
| 16 | 16 | ||
| 17 | 17 | The svga lib unit comes with the packages of Free Pascal. This contains a subdirectory svgalib. Change to this directory. | |
| 18 | 18 | ||
| 19 | 19 | Edit the makefile to suit your setup (compiler, options, where do you want to install) type | |
| 20 | 20 | ||
| 21 | - | ||
| 21 | + | ```text | |
| 22 | + | make | |
| 23 | + | ``` | |
| 22 | 24 | ||
| 23 | 25 | and all units will be compiled. Then type | |
| 24 | 26 | ||
| 25 | - | ||
| 27 | + | ```text | |
| 28 | + | make install | |
| 29 | + | ``` | |
| 26 | 30 | ||
| 27 | 31 | To install the units. | |
| 28 | 32 | ||
| 29 | 33 | ## Testing | |
| 30 | 34 | ||
| 31 | 35 | Two small testprograms have been provided: | |
| 32 | 36 | ||
| 33 | 37 | - **vgatest** : This is a translation of the C program that comes with svgalib. | |
| 34 | 38 | - **testvga** : A Small program to demonstrate that you can draw lines on the screen in any mode. | |
| 35 | 39 | ||
| 36 | 40 | typing | |
| 37 | 41 | ||
| 38 | - | ||
| 42 | + | ```text | |
| 43 | + | make test | |
| 44 | + | ``` | |
| 39 | 45 | ||
| 40 | 46 | will compile the programs. | |
| 41 | 47 | ||
| 42 | 48 | ## Caveats | |
| 43 | 49 | ||
| 44 | 50 | 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. | |
| 45 | 51 | ||
| 46 | 52 | ## Future Plans | |
| 47 | 53 | ||
| 48 | 54 | 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. | |
| 49 | 55 | ||
| 50 | 56 | Go to back [[Package List|Packages List]] | |
| 51 | 57 | ||
| 52 | 58 | --- | |
| 53 | 59 | *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).* | |
| 54 | 60 | Category: Linux | |
| 55 | 61 | Category: Packages | |
| 56 | 62 | Category: Unix |
