Support for \ESC[%dS (scroll screen up).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25982 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-06-16 23:15:26 +00:00
parent 0dd40534eb
commit 3f6008436d
4 changed files with 11 additions and 2 deletions

View File

@ -125,7 +125,7 @@ public:
// scroll region
inline void ScrollBy(int32 numLines);
void SetScrollRegion(int32 top, int32 bot);
void SetScrollRegion(int32 top, int32 bottom);
protected:
virtual void NotifyListener();

View File

@ -944,6 +944,13 @@ TermParse::EscParse()
parsestate = groundtable;
break;
case CASE_SU: // scroll screen up
if ((row = param[0]) < 1)
row = 1;
fBuffer->ScrollBy(row);
parsestate = groundtable;
break;
default:
break;
}

View File

@ -1115,7 +1115,7 @@ CASE_GROUND_STATE,
CASE_DCH,
CASE_GROUND_STATE,
CASE_GROUND_STATE,
CASE_GROUND_STATE,
CASE_SU,
/* T U V W */
CASE_GROUND_STATE,
CASE_GROUND_STATE,

View File

@ -119,3 +119,5 @@
// additions, maybe reorder/reuse older ones ?
#define CASE_VPA 87
#define CASE_HPA 88
#define CASE_SU 89 /* scroll screen up */