Files
command-manager/static/js/terminal/lib/util.js
2015-11-24 21:43:56 +08:00

18 lines
362 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;
};
};