update files

This commit is contained in:
nuintun 2015-11-24 23:15:41 +08:00
parent 3efac1f18a
commit 7d7e67cd64
2 changed files with 0 additions and 20 deletions

View File

@ -81,7 +81,6 @@ require('./lib/options')(Terminal);
require('./lib/open')(Terminal);
require('./lib/destroy')(Terminal);
require('./lib/refresh')(Terminal);
require('./lib/scrollDisp')(Terminal);
require('./lib/write')(Terminal);

View File

@ -1,19 +0,0 @@
/**
* Created by nuintun on 2015/11/24.
*/
'use strict';
module.exports = function (Terminal){
Terminal.prototype.scrollDisp = function (disp){
this.ydisp += disp;
if (this.ydisp > this.ybase) {
this.ydisp = this.ybase;
} else if (this.ydisp < 0) {
this.ydisp = 0;
}
this.refresh(0, this.rows - 1);
};
};