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
+1 -1
View File
@@ -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();
+7
View File
@@ -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;
} }
+1 -1
View File
@@ -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,
+2
View File
@@ -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 */