[EMAIL PROTECTED] wrote:

> 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 am using different method - switching console to raw input mode
using settermios() function. Do you think it will be compatible ?

 
> 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.


I understand. It is good idea.

-- 
Michael "xChaos" Polak
+420 603 872631 / +420 2 33355668 / ICQ# 40434104
http://www.arachne.cz (Arachne Labs homepage)
http://www.mp3records.cz (100% legal and free music)
http://www.legalizace.cz (Stop drug war & release victims !)
http://www.vojna.cz (Petice za zruseni vojny i civilni sluzby)

Reply via email to