update files

This commit is contained in:
nuintun
2015-11-27 09:35:42 +08:00
parent 65e67f90da
commit 4e16de9f77
9 changed files with 89 additions and 48 deletions

View File

@@ -70,19 +70,15 @@ function Terminal(options){
this.cols = options.cols;
this.rows = options.rows;
// set ondata
// set on data callback
options.ondata = typeof options.ondata === 'function' ? options.ondata : function (){};
this.ondata = options.ondata;
// set ontitle
// set on title callback
options.ontitle = typeof options.ontitle === 'function' ? options.ontitle : function (){};
this.ontitle = options.ontitle;
// set onscreen
options.onscreen = typeof options.onscreen === 'function' ? options.onscreen : function (){};
this.onscreen = options.onscreen;
// set convert eol
// set convert end of line
options.convertEOL = options.convertEOL === true;
this.convertEOL = options.convertEOL;
@@ -114,8 +110,8 @@ function Terminal(options){
this.charsets = [null];
// misc
this.screen = '';
this.screenLines = [];
this.element = null;
this.children = [];
this.refreshStart = null;
this.refreshEnd = null;
this.savedX = null;