mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
* grub-core/normal/term.c (print_more): Make \r or \n scroll one
line, and other keys scroll an entire page (previous handling was for \r and \n to scroll a page and other keys to scroll two lines).
This commit is contained in:
1 parent
e1dffcf270
commit
32570200a8
2 files changed
+10
-4
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2010-12-18 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
|
* grub-core/normal/term.c (print_more): Make \r or \n scroll one
|
||||||
|
line, and other keys scroll an entire page (previous handling was
|
||||||
|
for \r and \n to scroll a page and other keys to scroll two lines).
|
||||||
|
|
||||||
2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
|
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
|
||||||
|
|||||||
@@ -91,16 +91,16 @@ print_more (void)
|
|||||||
grub_term_restore_pos (pos);
|
grub_term_restore_pos (pos);
|
||||||
grub_free (pos);
|
grub_free (pos);
|
||||||
|
|
||||||
/* Scroll one lines or an entire page, depending on the key. */
|
/* Scroll one line or an entire page, depending on the key. */
|
||||||
|
|
||||||
if (key == '\r' || key =='\n')
|
if (key == '\r' || key =='\n')
|
||||||
grub_normal_reset_more ();
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
static struct term_state *state;
|
static struct term_state *state;
|
||||||
for (state = term_states; state; state = state->next)
|
for (state = term_states; state; state = state->next)
|
||||||
state->num_lines -= 2;
|
state->num_lines--;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
grub_normal_reset_more ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in new issue
Block a user