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:
@@ -709,6 +709,14 @@ BasicTerminalBuffer::EraseBelow()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BasicTerminalBuffer::EraseAll()
|
||||||
|
{
|
||||||
|
fSoftWrappedCursor = false;
|
||||||
|
_Scroll(fScrollTop, fScrollBottom, fHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BasicTerminalBuffer::DeleteChars(int32 numChars)
|
BasicTerminalBuffer::DeleteChars(int32 numChars)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ public:
|
|||||||
void EraseChars(int32 numChars);
|
void EraseChars(int32 numChars);
|
||||||
void EraseAbove();
|
void EraseAbove();
|
||||||
void EraseBelow();
|
void EraseBelow();
|
||||||
|
void EraseAll();
|
||||||
void DeleteChars(int32 numChars);
|
void DeleteChars(int32 numChars);
|
||||||
void DeleteColumns();
|
void DeleteColumns();
|
||||||
void DeleteLines(int32 numLines);
|
void DeleteLines(int32 numLines);
|
||||||
|
|||||||
@@ -640,8 +640,7 @@ TermParse::EscParse()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
fBuffer->EraseBelow();
|
fBuffer->EraseAll();
|
||||||
fBuffer->EraseAbove();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
parsestate = groundtable;
|
parsestate = groundtable;
|
||||||
|
|||||||
Reference in New Issue
Block a user