mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 04:04:04 +08:00
14 lines
316 B
JavaScript
14 lines
316 B
JavaScript
'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;
|
|
};
|
|
};
|