[GRASS5] g.help key codes

Rich Shepard rshepard at appl-ecosys.com
Mon Oct 23 15:31:16 EDT 2000


On Mon, 23 Oct 2000, Markus Neteler wrote:

> thanks for this: I have found it on my Linux box.
> But...
> The strange thing is that the *working* keycodes are different
> from any program output (I tried different than xkeycaps).
> 
> PAGEUP    '\065'     
> PAGEDOWN  '\066'
> ESC       '\033'

  These are the octal codes '\O (Oh, not zero)..'. Hex would start '0x.. '.

  There's another program ... I think the name is 'xev' (for x event) that
tells you everything ... yes, that's the name. When you run that from a
virtual terminal, you'll see a small box pop up, and every cursor movement,
mouse button press/release or key press/release will be shown on screen.

  Click the mouse in the small box, then press the up-arrow and down-arrow
keys (I assume that's what you meant by "lineup" and "linedown".

> I guess this is hex, octal or whatever. But even with converting
> to dec I could not find out:
> LINEUP
> LINEDOWN

  Anyway, xev will show you the key code and scan code (plus a whole bunch
more that makes no sense to me) for every key you press. That should help.
At the least, it will give you hours of entertainment. :-)

Rich

Dr. Richard B. Shepard, President

                       Applied Ecosystem Services, Inc. (TM)
              Making environmentally-responsible mining happen. (SM)         
                       --------------------------------
            2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | rshepard at appl-ecosys.com


---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list