update files

This commit is contained in:
nuintun 2015-11-25 14:59:21 +08:00
parent 59097a29ce
commit 697d620aba
2 changed files with 15 additions and 2 deletions

View File

@ -30,4 +30,17 @@ module.exports = function (Terminal){
this.updateRange(this.scrollTop); this.updateRange(this.scrollTop);
this.updateRange(this.scrollBottom); this.updateRange(this.scrollBottom);
}; };
// CSI Ps ; Ps r
// Set Scrolling Region [top;bottom] (default = full size of win-
// dow) (DECSTBM).
// CSI ? Pm r
Terminal.prototype.setScrollRegion = function (params){
if (this.prefix) return;
this.x = 0;
this.y = 0;
this.scrollTop = (params[0] || 1) - 1;
this.scrollBottom = (params[1] || this.rows) - 1;
};
}; };

View File

@ -651,7 +651,7 @@ module.exports = function (Terminal){
// dow) (DECSTBM). // dow) (DECSTBM).
// CSI ? Pm r // CSI ? Pm r
case 'r': case 'r':
//- this.setScrollRegion(this.params); this.setScrollRegion(this.params);
break; break;
// CSI s // CSI s
// Save cursor (ANSI.SYS). // Save cursor (ANSI.SYS).