D21282: CSI 2J: Do not append current screen to history
Mariusz Glebocki
noreply at phabricator.kde.org
Sun May 19 02:06:48 BST 2019
mglb created this revision.
mglb added a reviewer: Konsole.
mglb added a project: Konsole.
Herald added a subscriber: konsole-devel.
mglb requested review of this revision.
REVISION SUMMARY
This behavior is present in e.g. xterm and linux console.
Currently when using CSI 2J escape sequence, screen contents are
appended to scrollback (including bottom empty lines). This is breaking
`clear` command, which replaces scrollback with current screen contents.
BUG: 384218
TEST PLAN
- Start Konsole with a shell
- `clear`
**Expected result:**
Cleared display, empty scrollback.
**Actual result:**
Cleared display, but scrollback contains previous display contents.
---
- Start Konsole with a shell
- seq 1000
- `echo -ne '\033[2J`
**Expected result:**
Cleared display, numbers in last scrollback lines.
**Actual result:**
Cleared display, but scrollback contains previous display contents
(i.e. shell prompt in last lines)
REPOSITORY
R319 Konsole
BRANCH
fix-clear (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D21282
AFFECTED FILES
src/Screen.cpp
To: mglb, #konsole
Cc: konsole-devel, #konsole, gennad, thsurrel, ngraham, maximilianocuria, hindenburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20190519/534b32f2/attachment.html>
More information about the konsole-devel
mailing list