Changed the Ctrl-L behavior: The current screen is now scrolled up completely

instead of actually clearing it, so that it is still in the history.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32398 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-08-14 21:13:13 +00:00
parent 477d2636d8
commit 80abc2712f
3 changed files with 10 additions and 2 deletions
@@ -709,6 +709,14 @@ BasicTerminalBuffer::EraseBelow()
}
void
BasicTerminalBuffer::EraseAll()
{
fSoftWrappedCursor = false;
_Scroll(fScrollTop, fScrollBottom, fHeight);
}
void
BasicTerminalBuffer::DeleteChars(int32 numChars)
{
+1
View File
@@ -114,6 +114,7 @@ public:
void EraseChars(int32 numChars);
void EraseAbove();
void EraseBelow();
void EraseAll();
void DeleteChars(int32 numChars);
void DeleteColumns();
void DeleteLines(int32 numLines);
+1 -2
View File
@@ -640,8 +640,7 @@ TermParse::EscParse()
break;
case 2:
fBuffer->EraseBelow();
fBuffer->EraseAbove();
fBuffer->EraseAll();
break;
}
parsestate = groundtable;