update files

This commit is contained in:
nuintun
2015-11-26 11:45:31 +08:00
parent 93b8d9342b
commit 8d2af4a433
14 changed files with 178 additions and 82 deletions

View File

@@ -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;