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:
@@ -125,7 +125,7 @@ public:
|
|||||||
|
|
||||||
// scroll region
|
// scroll region
|
||||||
inline void ScrollBy(int32 numLines);
|
inline void ScrollBy(int32 numLines);
|
||||||
void SetScrollRegion(int32 top, int32 bot);
|
void SetScrollRegion(int32 top, int32 bottom);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void NotifyListener();
|
virtual void NotifyListener();
|
||||||
|
|||||||
@@ -944,6 +944,13 @@ TermParse::EscParse()
|
|||||||
parsestate = groundtable;
|
parsestate = groundtable;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CASE_SU: // scroll screen up
|
||||||
|
if ((row = param[0]) < 1)
|
||||||
|
row = 1;
|
||||||
|
fBuffer->ScrollBy(row);
|
||||||
|
parsestate = groundtable;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1115,7 +1115,7 @@ CASE_GROUND_STATE,
|
|||||||
CASE_DCH,
|
CASE_DCH,
|
||||||
CASE_GROUND_STATE,
|
CASE_GROUND_STATE,
|
||||||
CASE_GROUND_STATE,
|
CASE_GROUND_STATE,
|
||||||
CASE_GROUND_STATE,
|
CASE_SU,
|
||||||
/* T U V W */
|
/* T U V W */
|
||||||
CASE_GROUND_STATE,
|
CASE_GROUND_STATE,
|
||||||
CASE_GROUND_STATE,
|
CASE_GROUND_STATE,
|
||||||
|
|||||||
@@ -119,3 +119,5 @@
|
|||||||
// additions, maybe reorder/reuse older ones ?
|
// additions, maybe reorder/reuse older ones ?
|
||||||
#define CASE_VPA 87
|
#define CASE_VPA 87
|
||||||
#define CASE_HPA 88
|
#define CASE_HPA 88
|
||||||
|
|
||||||
|
#define CASE_SU 89 /* scroll screen up */
|
||||||
|
|||||||
Reference in New Issue
Block a user