]> git.ipfire.org Git - thirdparty/u-boot.git/commit
u_boot_pylib: Add a pager
authorSimon Glass <sjg@chromium.org>
Tue, 29 Apr 2025 13:22:03 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:41 +0000 (10:07 +0100)
commit1f18e8798fe2f89294925ad3cb5acf1754b080ca
treea62d976124d1554a3b48bb57ea0dfe23a286a043
parentf74c6f9a81de1c0c04c578b0e6e2d8b1303d6d43
u_boot_pylib: Add a pager

It is useful to have a pager when outputting a lot of text. Add support
for this in the terminal library, making use of a context manager.

Also add a function to indicate whether the output device is a terminal
or not, while we are here, to avoid duplicating this code.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/u_boot_pylib/terminal.py