[PATCH v4 1/2] console: add console_flush_stdin()
Tom Rini
trini at konsulko.com
Thu Apr 23 00:49:00 CEST 2026
On Mon, 13 Apr 2026 17:24:53 +0200, Gregor Herburger wrote:
> Add a common helper console_flush_stdin() to drain all pending
> characters from stdin. This consolidates the open-coded
> while (tstc()) getchar() pattern that appeared in multiple places
> across the tree.
>
>
Applied to u-boot/master, thanks!
[1/2] console: add console_flush_stdin()
commit: 2c8fdd7aea1d3c6c380ea5b5080147dc7fe9c38f
[2/2] cli: flush stdin before enabling cli
commit: e973fa5115e40f93bb1425db5b1cc1f3d9b8047d
--
Tom
More information about the U-Boot
mailing list