All of lore.kernel.org
 help / color / mirror / Atom feed
* Page up/down keys
@ 2008-08-20 22:10 Carles Pina i Estany
  2008-08-21 13:33 ` Robert Millan
  0 siblings, 1 reply; 2+ messages in thread
From: Carles Pina i Estany @ 2008-08-20 22:10 UTC (permalink / raw)
  To: grub-devel


Hello,

As we talked (Robert and me) in another thread, I'm thinking to add
support for Page Up/Down keys in Grub menu (if here, in the mailing
list, think that it's fine).

My suggestion for the exact behaviour is mainly the same that vim is
using. If you want to test how it would look in a menu, get a xterm,
resize to 6 rows (and many columns as you want) and execute:

seq 100 | vim -

I would implement the same behaviour (I'm thinking about which lines are
showed and where is the active line after pressing PgUp/Down)

I would add only one thing: pressing "many times" PageUp would move the
active line to the first position (vim is not doing it). So, when the
active line is on the first page and the user press PgUp one more time
it would move te cursor to the top.

Suggestions? Comments?

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



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

* Re: Page up/down keys
  2008-08-20 22:10 Page up/down keys Carles Pina i Estany
@ 2008-08-21 13:33 ` Robert Millan
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Millan @ 2008-08-21 13:33 UTC (permalink / raw)
  To: The development of GRUB 2

On Thu, Aug 21, 2008 at 12:10:55AM +0200, Carles Pina i Estany wrote:
> 
> Hello,
> 
> As we talked (Robert and me) in another thread, I'm thinking to add
> support for Page Up/Down keys in Grub menu (if here, in the mailing
> list, think that it's fine).
> 
> My suggestion for the exact behaviour is mainly the same that vim is
> using. If you want to test how it would look in a menu, get a xterm,
> resize to 6 rows (and many columns as you want) and execute:
> 
> seq 100 | vim -

Some idea to avoid the bikesheding: how about following the behaviour that
is simpler/cleaner to implement and/or results in less code size? :-)

> I would add only one thing: pressing "many times" PageUp would move the
> active line to the first position (vim is not doing it). So, when the
> active line is on the first page and the user press PgUp one more time
> it would move te cursor to the top.

Sounds pretty reasonable to me.  I wonder why vim (neither emacs) don't do
this by default.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



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

end of thread, other threads:[~2008-08-21 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 22:10 Page up/down keys Carles Pina i Estany
2008-08-21 13:33 ` 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.