[GRASS5] g.help key codes

Hi developers,

to have g.help more convenient, I have modified the control
keys:

   d - Scrolls down one line r - Redraws the screen
   PAGEUP - Scrolls down a screen RETURN - Moves "*" to a topic/word
   u - Scrolls up one line SPACE BAR - Selects a topic/word
   PAGEDOWN - Scrolls up a screen q - Returns to previous topic

Unfortunately I don't know "Cursor Up" and "Cursor Down".
Does anyone know these key codes?

The file containing the key codes is:
src/general/g.help/menu.h

Thanks in advance

Markus

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

On Mon, 23 Oct 2000, Markus Neteler wrote:

to have g.help more convenient, I have modified the control
keys:

   d - Scrolls down one line r - Redraws the screen
   PAGEUP - Scrolls down a screen RETURN - Moves "*" to a topic/word
   u - Scrolls up one line SPACE BAR - Selects a topic/word
   PAGEDOWN - Scrolls up a screen q - Returns to previous topic

Unfortunately I don't know "Cursor Up" and "Cursor Down". Does anyone
know these key codes?

Markus,

  There is a very useful little tool called 'xkeycaps' that you can find on
freshmeat. It gives you the keycode and scancode for every key on your
keyboard.

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@appl-ecosys.com

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

On Mon, Oct 23, 2000 at 11:07:13AM -0700, Rich Shepard wrote:

On Mon, 23 Oct 2000, Markus Neteler wrote:

> to have g.help more convenient, I have modified the control
> keys:
>
> d - Scrolls down one line r - Redraws the screen
> PAGEUP - Scrolls down a screen RETURN - Moves "*" to a topic/word
> u - Scrolls up one line SPACE BAR - Selects a topic/word
> PAGEDOWN - Scrolls up a screen q - Returns to previous topic
>
> Unfortunately I don't know "Cursor Up" and "Cursor Down". Does anyone
> know these key codes?

Markus,

  There is a very useful little tool called 'xkeycaps' that you can find on
freshmeat. It gives you the keycode and scancode for every key on your
keyboard.

Rich,

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'

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

So, if you could reproduce the coding for PAGEUP and PAGEDOWN,
we might derive the cursor keys.

Thanks in advance

Markus

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

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

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@appl-ecosys.com

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

On Mon, Oct 23, 2000 at 12:31:16PM -0700, Rich Shepard wrote:

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

Rich,

actually this is 0 (zero...). I copy-pasted the entries.

  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.

I have that but cannot reproduce even the PAGEUP/PAGEDOWN.

THe "showkey" also didn't help.

  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 have renamed that to ARROWUP and ARROWDOWN now.

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

The latter us true :slight_smile:

Well, no idea. Rich, if you manage to reproduce above codes for
PAGEUP/DOWN, we might derive the codes for ARROWUP/DOWN.

Markus

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