mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2026-01-26 01:17:02 +00:00
Move eraseLine/eraseScreen to obsolete.
git-svn-id: svn://qnap.local/TwoTerm/trunk@2017 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
@@ -577,38 +577,6 @@ void Screen::erase(TextPort* textPort, EraseRegion region)
|
||||
|
||||
}
|
||||
|
||||
void Screen::eraseLine()
|
||||
{
|
||||
// erases everything to the right of, and including, the cursor
|
||||
|
||||
for (CharInfoIterator ciIter = _screen[y()].begin() + x(); ciIter < _screen[y()].end(); ++ciIter)
|
||||
{
|
||||
*ciIter = CharInfo(0, _flag);
|
||||
}
|
||||
|
||||
_updates.push_back(cursor());
|
||||
_updates.push_back(iPoint(width() - 1, y()));
|
||||
}
|
||||
void Screen::eraseScreen()
|
||||
{
|
||||
// returns everything to the right of, and including, the cursor as well as all subsequent lines.
|
||||
|
||||
eraseLine();
|
||||
|
||||
if (y() == height() -1) return;
|
||||
|
||||
for (ScreenIterator iter = _screen.begin() + y(); iter < _screen.end(); ++iter)
|
||||
{
|
||||
for (CharInfoIterator ciIter = iter->begin(); ciIter < iter->end(); ++ciIter)
|
||||
{
|
||||
*ciIter = CharInfo(0, _flag);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
_updates.push_back(iPoint(0, y() + 1));
|
||||
_updates.push_back(iPoint(width() - 1, height() - 1));
|
||||
}
|
||||
|
||||
|
||||
void Screen::eraseRect(iRect rect)
|
||||
@@ -907,4 +875,10 @@ void Screen::setSize(unsigned w, unsigned h)
|
||||
|
||||
//fprintf(stderr, "setSize(%u, %u)\n", width, height);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Screen::setCursorType(CursorType cursorType)
|
||||
{
|
||||
_cursorType = cursorType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user