Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-07

Re: SVGALib+Keyboard, help plz!

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco van de Voort
to Vit Kavan: has anyone a working example of SVGALib keyboard handler? Gfx stuff works well, but I…
Show quoted text 7 lines
Hi all, has anyone a working example of SVGALib keyboard handler? Gfx stuff works well, but I cannot make that keyb working. Or any tip how to handle keyboard (KeyUp/KeyDown way) without X. PS.: ...under Linux of course....

Of course?

su-2.05# cd /usr/local/lib
su-2.05# ls -als libvg*
512 -rw-r--r-- 1 root bin 508904 Jul 4 11:09 libvga.a 0 lrwxr-xr-x 1 root wheel 11 Jul 4 11:09 libvga.so -> libvga.so.1 320 -rwxr-xr-x 1 root bin 316088 Jul 4 11:09 libvga.so.1 73 -rw-r--r-- 1 root bin 73960 Jul 4 11:09 libvgagl.a 0 lrwxr-xr-x 1 root wheel 13 Jul 4 11:09 libvgagl.so -> libvgagl.so.1
52 -rwxr-xr-x 1 root bin 52836 Jul 4 11:09 libvgagl.so.1 su-2.05# uname -a
FreeBSD deathstar.athome.tue.nl 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001
i386
su-2.05#

:-)

-----------------

Seriously, check the keyboard routines of the IDE. (keyboard.pp either in the API, or in the rtl/linux or rtl/unix directory).

These implement lowlevel console based keyboard routines. If it doesn't work, you have to find a solution inside svgalib. (does it come with keyboard functions?)

Matti Hamalainen
to Vit Kavan: has anyone a working example of SVGALib keyboard handler? Gfx stuff works well, but I…
Vit Kavan wrote
has anyone a working example of SVGALib keyboard handler? Gfx stuff works well, but I cannot make that keyb working. Or any tip how to handle keyboard (KeyUp/KeyDown way) without X.

First of all, what version of SVGAlib you have?
If it's old, you're better off to upgrade it to latest version (If I remember right, 1.4.3 is the latest stable).

Anyway, I would recommend using SDL or GGI (even as a SVGAlib wrapper), SVGAlib is a quirky little bugger, that does not work properly in many situations. And it's buggy too + requires SUID root.

PS.: ...under Linux of course....

Marco already pointed out the FreeBSD-thing ;)

Yes, there are some keyboard handling routines in SVGAlib.

=- ccr/TNSP^pWp
] | http://www.tnsp.org/
] Show me your "realtime raytracer in Java"
] and I'll show you my CBM 8032, 2 MHz!

Vit Kavan

Hi all,

has anyone a working example of SVGALib keyboard handler? Gfx stuff works well, but I cannot make that keyb working.
Or any tip how to handle keyboard (KeyUp/KeyDown way) without X.

PS.: ...under Linux of course....

Thanks in advance, Vit Kavan