mirror of
https://github.com/nuintun/command-manager.git
synced 2025-12-15 07:05:38 +08:00
update files
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (Terminal){
|
||||
/**
|
||||
* isWide
|
||||
* @param ch
|
||||
* @returns {boolean}
|
||||
*/
|
||||
Terminal.prototype.isWide = function isWide(ch){
|
||||
if (ch <= '\uff00') return false;
|
||||
|
||||
@@ -17,10 +22,20 @@ module.exports = function (Terminal){
|
||||
|| (ch >= '\uffe8' && ch <= '\uffee');
|
||||
};
|
||||
|
||||
/**
|
||||
* ch
|
||||
* @param cur
|
||||
* @returns {string[]}
|
||||
*/
|
||||
Terminal.prototype.ch = function (cur){
|
||||
return cur ? [this.eraseAttr(), ' '] : [this.defAttr, ' '];
|
||||
};
|
||||
|
||||
/**
|
||||
* is
|
||||
* @param term
|
||||
* @returns {boolean}
|
||||
*/
|
||||
Terminal.prototype.is = function (term){
|
||||
var name = this.termName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user