mirror of
https://github.com/nuintun/command-manager.git
synced 2025-12-15 23:30:48 +08:00
update files
This commit is contained in:
@@ -5,12 +5,19 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (Terminal){
|
||||
/**
|
||||
* updateRange
|
||||
* @param y
|
||||
*/
|
||||
Terminal.prototype.updateRange = function (y){
|
||||
if (y < this.refreshStart) this.refreshStart = y;
|
||||
|
||||
if (y > this.refreshEnd) this.refreshEnd = y;
|
||||
};
|
||||
|
||||
/**
|
||||
* maxRange
|
||||
*/
|
||||
Terminal.prototype.maxRange = function (){
|
||||
this.refreshStart = 0;
|
||||
this.refreshEnd = this.rows - 1;
|
||||
|
||||
Reference in New Issue
Block a user