ClearScreen should clear scrollback buffer as well, or PSReadLine should implement ClearDisplay #4626
Labels
Issue-Enhancement
It's a feature request.
Needs-Triage 🔍
It's a new issue that core contributor team needs to triage.
Prerequisites
Description of the new feature/enhancement
The GNU
readline
hasclear-display
command since version 8.1, about four years.Clearing only screen without scrollback is rather useless, as it is garbled with old junk from previous commands.
There is a question on Super User, with answer suggesting to rebind
Ctrl-L
to a script executingcls
command. This is very inefficient, if not say more.So, PSReadLine
ClearScreen
should clear scrollback too, or it should implementClearDisplay
as well.Proposed technical implementation details (optional)
Please don't do it the way
libvte
does - there is no excuse for them to do it that way.The text was updated successfully, but these errors were encountered: