update files

This commit is contained in:
nuintun
2015-11-26 11:45:31 +08:00
parent 93b8d9342b
commit 8d2af4a433
14 changed files with 178 additions and 82 deletions

View File

@@ -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;