1 | ;
|
2 |
|
3 | module.exports = function (Terminal) {
|
4 | Terminal.prototype.scrollDisp = function(disp) {
|
5 | this.ydisp += disp;
|
6 |
|
7 | if (this.ydisp > this.ybase) {
|
8 | this.ydisp = this.ybase;
|
9 | } else if (this.ydisp < 0) {
|
10 | this.ydisp = 0;
|
11 | }
|
12 |
|
13 | this.refresh(0, this.rows - 1);
|
14 | };
|
15 | };
|