mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
normal/help: Add paging instructions to normal and help prompts
This is not an ideal solution, as interactive users must always run a command in order to get the behavior they want, but it avoids problematic interactions between prompting and sourcing files. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
a4356538d0
commit
f5759a878e
2 files changed
+4
-1
No files matched your search
@@ -135,6 +135,8 @@ grub_cmd_help (grub_extcmd_context_t ctxt __attribute__ ((unused)), int argc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
grub_printf ("\n\nTo enable less(1)-like paging, \"set pager=1\".\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -380,7 +380,8 @@ grub_normal_reader_init (int nested)
|
|||||||
|
|
||||||
msg_formatted = grub_xasprintf (_("Minimal BASH-like line editing is supported. For "
|
msg_formatted = grub_xasprintf (_("Minimal BASH-like line editing is supported. For "
|
||||||
"the first word, TAB lists possible command completions. Anywhere "
|
"the first word, TAB lists possible command completions. Anywhere "
|
||||||
"else TAB lists possible device or file completions. %s"),
|
"else TAB lists possible device or file completions. To enable "
|
||||||
|
"less(1)-like paging, \"set pager=1\". %s"),
|
||||||
nested ? msg_esc : "");
|
nested ? msg_esc : "");
|
||||||
if (!msg_formatted)
|
if (!msg_formatted)
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
|||||||
Reference in new issue
Block a user