mirror of
https://github.com/nuintun/command-manager.git
synced 2025-12-15 15:20:06 +08:00
update files
This commit is contained in:
13
static/js/terminal/lib/util.js
Normal file
13
static/js/terminal/lib/util.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'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;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user