mirror of
https://github.com/nuintun/command-manager.git
synced 2025-08-17 19:39:34 +08:00
update files
This commit is contained in:
parent
47eaa929b7
commit
3bd8154357
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
module.exports = function (Terminal){
|
module.exports = function (Terminal){
|
||||||
Terminal.prototype.blankLine = function (cur){
|
Terminal.prototype.blankLine = function (cur){
|
||||||
var attr = cur ? this.curAttr : this.defAttr;
|
var attr = cur ? this.eraseAttr() : this.defAttr;
|
||||||
var ch = [attr, ''];
|
var ch = [attr, ' '];
|
||||||
var line = [];
|
var line = [];
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
module.exports = function (Terminal){
|
module.exports = function (Terminal){
|
||||||
Terminal.prototype.isWide = function isWide(ch){
|
Terminal.prototype.isWide = function isWide(ch){
|
||||||
if (ch <= '\uff00') return false;
|
if (ch <= '\uff00') return false;
|
||||||
|
|
||||||
return (ch >= '\uff01' && ch <= '\uffbe')
|
return (ch >= '\uff01' && ch <= '\uffbe')
|
||||||
|| (ch >= '\uffc2' && ch <= '\uffc7')
|
|| (ch >= '\uffc2' && ch <= '\uffc7')
|
||||||
|| (ch >= '\uffca' && ch <= '\uffcf')
|
|| (ch >= '\uffca' && ch <= '\uffcf')
|
||||||
@ -18,11 +18,11 @@ module.exports = function (Terminal){
|
|||||||
};
|
};
|
||||||
|
|
||||||
Terminal.prototype.ch = function (cur){
|
Terminal.prototype.ch = function (cur){
|
||||||
return cur ? [this.curAttr, ' '] : [this.defAttr, ' '];
|
return cur ? [this.eraseAttr(), ' '] : [this.defAttr, ' '];
|
||||||
};
|
};
|
||||||
|
|
||||||
Terminal.prototype.is = function (term){
|
Terminal.prototype.is = function (term){
|
||||||
var name = this.termName || Terminal.termName;
|
var name = this.termName;
|
||||||
|
|
||||||
return (name + '').indexOf(term) === 0;
|
return (name + '').indexOf(term) === 0;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user