« get me outta code hell

isCharacter telchar util function - tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-06-04 15:59:19 -0300
committerFlorrie <towerofnix@gmail.com>2018-06-04 15:59:19 -0300
commitc42add3c9edb6446a759ae4f5a2b3e81cf56f4f5 (patch)
treea6821e44289c10d2f5667b1c8b9137cfa3343323
parenta3df7cf7205d12ab5e6fc7b5746cae6c4a6a8214 (diff)
isCharacter telchar util function
-rw-r--r--util/telchars.js1
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