All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carles Pina i Estany <carles@pina.cat>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: GRUB_CONSOLE_KEY_NPAGE/PPAGE codes
Date: Sat, 23 Aug 2008 15:03:10 +0200	[thread overview]
Message-ID: <20080823130310.GA4245@pina.cat> (raw)
In-Reply-To: <48AFE7D1.3020107@nic.fi>


Hi,

On Aug/23/2008, Vesa Jääskeläinen wrote:

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

checking the Grub's ChangeLog (not Grub2):
------
2003-03-19  Yoshinori K. Okuji  <okuji@enbug.org>

        From Adam Lackorzynski <adam@os.inf.tu-dresden.de>:
        * stage2/shared.h (KEY_NPAGE): Changed to 0x5100.
        (KEY_PPAGE): Changed to 0x4900.
------
It defines PPAGE as 0x4900 and NPAGE as 0x5100. This is the change that I also
want to do, so looks fine.

> > 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?
> 
> Or me..  couldn't we just use GRUB_CONSOLE_KEY_PAGE_UP /
> GRUB_CONSOLE_KEY_PAGE_DOWN or something like that. NPAGE or PPAGE seems
> a bit weird. Then there is no need to hassle this next time when the
> issue is at hand :)

Then I would also change GRUB_TERM_PPAGE and GRUB_TERM_NPAGE names to
GRUB_TERM_PAGE_UP and GRUB_TERM_PAGE_DOWN (from include/grub/term.h, to be
consistent between GRUB_TERM_ and GRUB_CONSOLE_). And the places in the code
that this appears.

Note: in Spanish Page Up key is "RePag" that it means something like
"Previous Page". So maybe who wrote these names in first instance is not
English speaker and in his/her language it's called "Previous Page" and not
"Page Up". Here I'm just guessing.

So:
a) the values are swapped. I will send a patch to swap GRUB_CONSOLE_KEY_NPAGE
and GRUB_CONSOLE_KEY_PPAGE in all places.

b) what you (people in general) think about changing the name from
GRUB_CONSOLE_KEY_NPAGE to GRUB_CONSOLE_KEY_PAGE_DOWN? (and PAGE_UP) and also
the GRUB_TERM_? If we want to change, do you prefer that I change it in the same patch or different patch than changing the values?

Thanks for your helping,

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



  reply	other threads:[~2008-08-23 13:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080823130310.GA4245@pina.cat \
    --to=carles@pina.cat \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.