ptyfwd: when leaving a session with tinted background, clear to end of screen
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Jan 2024 22:39:13 +0000 (23:39 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 20 Jan 2024 01:11:48 +0000 (01:11 +0000)
commite4924fb0d1fa474f0c0874eefd872ad72626a76c
treec201144b3beb3f723c2d392bf3ab7a64bff1c61f
parent87da1af78f7e960b7a5fb614fc14e20c11c97356
ptyfwd: when leaving a session with tinted background, clear to end of screen

So if we tint the background of a ptyfwd session with a color and the
session ends, then so far we reset the bg color and clear till the end
of line.

Let's instead clear till the end of the screen. This is nicer since it
means that any follow-up output will not be affected by the changed
background color anymore.
src/basic/terminal-util.h
src/shared/ptyfwd.c