mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-06 10:54:07 +08:00
18 lines
354 B
JavaScript
18 lines
354 B
JavaScript
/**
|
|
* Created by nuintun on 2015/11/24.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = function (Terminal){
|
|
Terminal.prototype.ch = function (cur){
|
|
return cur ? [this.curAttr, ' '] : [this.defAttr, ' '];
|
|
};
|
|
|
|
Terminal.prototype.is = function (term){
|
|
var name = this.termName || Terminal.termName;
|
|
|
|
return (name + '').indexOf(term) === 0;
|
|
};
|
|
};
|