mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 11:34:05 +08:00
update files
This commit is contained in:
parent
99bab848d7
commit
e98ebadfea
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user