[Concept,03/22] console: Reset the pager when clearing the console

Message ID 20250925174753.3429102-4-sjg@u-boot.org
State New
Headers
Series efi: Tidy up some commands and provide a keyboard driver |

Commit Message

Simon Glass Sept. 25, 2025, 5:47 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

When the console is cleared we have a fresh screen so we can reset the
pager.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/console.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/common/console.c b/common/console.c
index 561a859dc1e..c033d72486a 100644
--- a/common/console.c
+++ b/common/console.c
@@ -1108,6 +1108,7 @@  int console_clear(void)
 		if (ret)
 			return ret;
 	}
+	pager_reset(gd_pager());
 
 	return 0;
 }