update files

This commit is contained in:
nuintun 2015-11-25 17:56:49 +08:00
parent 99bab848d7
commit e98ebadfea
2 changed files with 4 additions and 5 deletions

View File

@ -56,6 +56,9 @@ function Terminal(options){
options.handler = typeof options.handler === 'function' ? options.handler : function (){};
this.handler = options.handler;
options.handleTitle = typeof options.handleTitle === 'function' ? options.handleTitle : function (){};
this.handleTitle = options.handleTitle;
options.convertEol = options.convertEol === true;
this.convertEol = options.convertEol;

View File

@ -412,11 +412,7 @@ module.exports = function (Terminal){
case 2:
if (this.params[1]) {
this.title = this.params[1];
//handlers could not be installed
if (typeof this.handleTitle === 'function') {
this.handleTitle(this.title);
}
this.handleTitle(this.title);
}
break;
case 3: