Shift/Ctrl/Alt keys in Linux

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sun, 28 Nov 1999, Dave Cuny wrote:

Anyone have a clue how to determine if the Shift/Ctrl/Alt key is pressed in
Linux? I'd like to support keystrokes such as:

Shift+RightArrow
Ctrl+PageDown

but I don't know how to do this yet. Now that Euphoria/Linux has mouse
support, I should add the mouse routines  back into the EE/Linux port.

Thanks!

As a start, run showkeys. Each key has a code and status (pressed/released).
Keys always return the same code whether a modifier key is down at the time or
not, so I guess it will be necessary to store flags for the current state of
ctl / alt, etc.

Also, look at loadkeys (man loadkeys) and run a locate for the default key map:
defkeymap.map.

Regards,
Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu