[PATCH v3] cmdline: update clear screen behavior

Stephen Hemminger stephen at networkplumber.org
Sat Feb 14 20:08:58 CET 2026


On Fri, 16 Jan 2026 18:42:56 +0300
Kerem Aksu <kerem.aksu at i2i-systems.com> wrote:

> Control+L should clear screen and redisplay prompt at the top
> line. DPDK rdline library will not change anything on the screen when
> fed with Control+L.  When prompt is lost after too many text written
> to the terminal, users will press Control+L to clear screen and put
> the prompt to the top line. This is expected behavior in bash(1) or
> applications that are using readline(3). Updated to behave as users
> expected.
> 
> Signed-off-by: Kerem Aksu <kerem.aksu at i2i-systems.com>
> ---

Ended getting rid of the clear_screen flag.
If there are only to callers, it is better to have each caller
do the steps they want, then call reprint


More information about the dev mailing list