« get me outta code hell

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:
-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