This is a compromise for people requesting that the clear screen action (Ctrl+L) does not destroy screen contents. Eg #933 and several others over the years.
This is an alternative to PR #2135 which was rejected. It keeps the existing behavior unchanged, and instead adds an action that people can use to bind Ctrl+L, for example:
[key-bindings]
clear-with-scrollback = Control+l
Before destroying the screen contents, this action scrolls it off the screen (into the scrollback buffer) by feeding the linefeed chars into the terminal.
This is a compromise for people requesting that the clear screen action (Ctrl+L) does not destroy screen contents. Eg #933 and several others over the years.
This is an alternative to PR #2135 which was rejected. It keeps the existing behavior unchanged, and instead adds an action that people can use to bind Ctrl+L, for example:
```ini
[key-bindings]
clear-with-scrollback = Control+l
```
Before destroying the screen contents, this action scrolls it off the screen (into the scrollback buffer) by feeding the linefeed chars into the terminal.