console: Add a way to quit pager with no further output

Add support for pressing 'q' to throw away any further output until the
prompt is reached.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-22 06:18:36 -06:00
parent c7ba355d1f
commit dd80fd963c
5 changed files with 88 additions and 2 deletions

View File

@@ -654,6 +654,7 @@ int cli_readline_into_buffer(const char *const prompt, char *buffer,
static int initted;
bool old_bypass;
pager_clear_quit(gd_pager());
old_bypass = pager_set_bypass(gd_pager(), true);
/*