| Summary: | Feature Request: an option to preserve the scrollback buffer after a screen clear | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Anthony Valentine <amv> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Before clearing screen add its contents to the history. | ||
|
Description
Anthony Valentine
2003-02-28 18:12:03 UTC
Created attachment 8960 [details]
Before clearing screen add its contents to the history.
This works for me..
CVS commit by hindenburg:
BUG: 55343 Add entire screen text to history before clearing it
M +4 -0 TEScreen.cpp 1.85
--- kdebase/konsole/konsole/TEScreen.cpp #1.84:1.85
@@ -1017,4 +1017,8 @@ void TEScreen::clearToBeginOfScreen()
void TEScreen::clearEntireScreen()
{
+ // Add entire screen to history
+ for (int i = 0; i < (lines-1); i++)
+ addHistLine(); scrollUp(0,1);
+
clearImage(loc(0,0),loc(columns-1,lines-1),' ');
}
Seems my CCBUG didn't work. CVS commit by hindenburg: Really fix BUG 55343. CCBUG: 55343 M +2 -0 TEScreen.cpp 1.86 --- kdebase/konsole/konsole/TEScreen.cpp #1.85:1.86 @@ -1019,5 +1019,7 @@ void TEScreen::clearEntireScreen() // Add entire screen to history for (int i = 0; i < (lines-1); i++) + { addHistLine(); scrollUp(0,1); + } clearImage(loc(0,0),loc(columns-1,lines-1),' '); i am not able to get this working on REdhat 9.0 with kde 3.4.1, i have complied the source but the same problem I use konsole for the telnet session and the application sends a clear screen command . About #4; this works only when Konsole clears the screen; not the application running. So when your telnet clears the screen, Konsole knows nothing about that. |