UNPKG

315 BJavaScriptView Raw
1'use strict';
2
3module.exports = function (Terminal) {
4 Terminal.prototype.ch = function(cur) {
5 return cur ? [this.curAttr, ' '] : [this.defAttr, ' '];
6 };
7
8 Terminal.prototype.is = function(term) {
9 var name = this.termName || Terminal.termName;
10 return (name + '')
11 .indexOf(term) === 0;
12 };
13};