mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 04:04:04 +08:00
16 lines
301 B
JavaScript
16 lines
301 B
JavaScript
'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);
|
|
};
|
|
};
|