All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB_CONSOLE_KEY_NPAGE/PPAGE codes
@ 2008-08-23 10:16 Carles Pina i Estany
  2008-08-23 10:34 ` Vesa Jääskeläinen
  0 siblings, 1 reply; 6+ messages in thread
From: Carles Pina i Estany @ 2008-08-23 10:16 UTC (permalink / raw)
  To: grub-devel


Hello,

I started to play with GRUB_TERM_PPAGE/NPAGE in normal/menu.c and I've
had a problem: they was working in opposite way than I've expected.

Tracing the problem deeper than swapping GRUB_TERM_PPAGE constant by
GRUB_TERM_NPAGE, I have found that this values comes from
GRUB_CONSOLE_KEY_NPAGE.

Let's define: NPAGE (next page) = PGDN (PG DOWN). PPAGE (previous page)
= PGUP (PG UP).  Is this assumption correct?

There is quite much places in Grub2 code that defines:
#define GRUB_CONSOLE_KEY_NPAGE          0x4900
#define GRUB_CONSOLE_KEY_PPAGE          0x5100

Googling for these codes, I've found that they are usually defined in
opposite way:
#define 	KEY_PGUP   0x4900
#define 	KEY_PGDN   0x5100

All other codes matches.

If this is correct, a bit later I will prepare a patch to swap 0x4900
and 0x5100 where it's needed.

Am I missing something?

Thanks,

-- 
Carles Pina i Estany		GPG id: 0x17756391
	http://pinux.info



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-30 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-23 10:16 GRUB_CONSOLE_KEY_NPAGE/PPAGE codes Carles Pina i Estany
2008-08-23 10:34 ` Vesa Jääskeläinen
2008-08-23 13:03   ` Carles Pina i Estany
2008-08-24 12:33   ` Carles Pina i Estany
2008-08-24 16:08     ` Vesa Jääskeläinen
2008-08-30 11:25       ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.