« 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
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/telchars.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/telchars.js b/util/telchars.js
index 3ae07cb..12d4095 100644
--- a/util/telchars.js
+++ b/util/telchars.js
@@ -76,6 +76,11 @@ const telchars = {
   isShiftRight: buf => compareBufStr(buf, '\x1b[1;2C'),
   isShiftLeft: buf => compareBufStr(buf, '\x1b[1;2D'),
 
+  isMetaUp: buf => compareBufStr(buf, '\x1b[1;3A'),
+  isMetaDown: buf => compareBufStr(buf, '\x1b[1;3B'),
+  isMetaRight: buf => compareBufStr(buf, '\x1b[1;3C'),
+  isMetaLeft: buf => compareBufStr(buf, '\x1b[1;3D'),
+
   isControlUp: buf => compareBufStr(buf, '\x1b[1;5A'),
   isControlDown: buf => compareBufStr(buf, '\x1b[1;5B'),
   isControlRight: buf => compareBufStr(buf, '\x1b[1;5C'),