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:
parent
0dd40534eb
commit
3f6008436d
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user