Hi!
Here is example program, how to use ALT with svgalib:

#include <vgakeyboard.h>
#include <stdio.h>

int main() {
        char *buf;
        keyboard_init();
        do {
                keyboard_update();
                buf = keyboard_getstate();
                if ((buf[SCANCODE_LEFTALT] | buf[SCANCODE_RIGHTALT])
                & buf[SCANCODE_P]) fprintf(stderr,"ALT P\r");
                else fprintf(stderr,"     \r");
        }
        while (buf[SCANCODE_ESCAPE]==KEY_NOTPRESSED);
        keyboard_close();
        exit(0);
}

You could use SCROLL_LOCK, too.

I've got an idea to add to Arachne:
Adding URL to .ASF file with one keybinding.
For example one could surf through FTP sites, browse them offline
and choose what to download (add it to .ASF script).

I've got some difficulties to say what I wanted to say, but I hope
you understand what I mean.

Regards,
Witek

  


-- 

Ile zarabiasz? Wypelnij ankiete,
dowiesz sie jak zarabiac wiecej [ http://listaplac.onet.pl ]

Reply via email to