diff options
author | Florrie <towerofnix@gmail.com> | 2018-06-04 15:59:19 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-06-04 15:59:19 -0300 |
commit | c42add3c9edb6446a759ae4f5a2b3e81cf56f4f5 (patch) | |
tree | a6821e44289c10d2f5667b1c8b9137cfa3343323 | |
parent | a3df7cf7205d12ab5e6fc7b5746cae6c4a6a8214 (diff) |
isCharacter telchar util function
-rw-r--r-- | util/telchars.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/telchars.js b/util/telchars.js index 415eff8..dcb840f 100644 --- a/util/telchars.js +++ b/util/telchars.js @@ -40,6 +40,7 @@ const telchars = { isPageDown: buf => compareBufStr(buf, '\x1b[6~'), isCaselessLetter: (buf, letter) => compareBufStr(buf, letter.toLowerCase()) || compareBufStr(buf, letter.toUpperCase()), + isCharacter: (buf, char) => compareBufStr(buf, char), } module.exports = telchars |