From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Pager does work from a menu?
Date: Wed, 13 Jun 2007 16:24:04 +0200 [thread overview]
Message-ID: <20070613142404.GA13859@aragorn> (raw)
In-Reply-To: <466EAADB.60209@raulete.net>
On Tue, Jun 12, 2007 at 04:16:59PM +0200, adrian15 wrote:
> >
> >Can you ellaborate? From the code you pasted, I just see that when
> >"interactive" is set to 0, this has the same effect as pager being set to
> >the "0" string.
>
> That's what I mean. I think that interactive for grub2 means being in
> the grub2 shell (not in a menu). If you are in a menu (non interactive)
> then there is no stop between pages.
Ah, yes. Sounds like it. Not sure if there was a reason for this, maybe
the ChangeLog shows something?
> But you know I am a bit lazy. I should at last try to do a grub.cfg and
> test it on my test floppy and see if I am right or not.
Btw, do you know grub-emu? It can probably help you with testing (rather
than grabbing to a floppy and reboot).
Ah, and there's also qemu (building a floppy image should be much easier now,
with grub-mkrescue).
> >
> > grub_printf ("--MORE--");
> > grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);
> >
> > key = grub_getkey ();
> >
> >What do you find wrong in this code? AFAICS, the message is printed and
> >then
> >we use grub_getkey to block untill a key is pressed. Sounds like normal
> >pager-ish behaviour to me..
>
> The code is ok. What I do not find ok is that the screen pause happens
> in a function which works it is to put a character on the screen.
> I do not quite understand why a function that only has to print a
> character on the screen has also to deal with the screen by screen stop
> problem.
>
> In my opinion this screen by screen stop problem should be solved in
> another part of the source code but so far I do not know where.
You can move the code that handles screen stops somewhere else, but it's
still the code that prints something that has to trigger it, since screen
stops happen precisely when '\n' is printed. What would basicaly change is
that instead of getkey() you call something else (e.g. pause()).
You can also move it to a lower layer (grub_cur_term->putchar), but then you
have to duplicate code (which is bad).
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
prev parent reply other threads:[~2007-06-13 14:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 11:57 Pager does work from a menu? adrian15
2007-06-12 14:34 ` Robert Millan
2007-06-12 14:16 ` adrian15
2007-06-13 14:24 ` Robert Millan [this message]
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=20070613142404.GA13859@aragorn \
--to=rmh@aybabtu.com \
--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.