mirror of
https://github.com/nuintun/command-manager.git
synced 2025-08-17 19:39:34 +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 (){};
|
options.handler = typeof options.handler === 'function' ? options.handler : function (){};
|
||||||
this.handler = options.handler;
|
this.handler = options.handler;
|
||||||
|
|
||||||
|
options.handleTitle = typeof options.handleTitle === 'function' ? options.handleTitle : function (){};
|
||||||
|
this.handleTitle = options.handleTitle;
|
||||||
|
|
||||||
options.convertEol = options.convertEol === true;
|
options.convertEol = options.convertEol === true;
|
||||||
this.convertEol = options.convertEol;
|
this.convertEol = options.convertEol;
|
||||||
|
|
||||||
|
@ -412,11 +412,7 @@ module.exports = function (Terminal){
|
|||||||
case 2:
|
case 2:
|
||||||
if (this.params[1]) {
|
if (this.params[1]) {
|
||||||
this.title = this.params[1];
|
this.title = this.params[1];
|
||||||
|
this.handleTitle(this.title);
|
||||||
//handlers could not be installed
|
|
||||||
if (typeof this.handleTitle === 'function') {
|
|
||||||
this.handleTitle(this.title);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user