« 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/telchars.js
diff options
context:
space:
mode:
Diffstat (limited to 'util/telchars.js')
-rw-r--r--util/telchars.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/telchars.js b/util/telchars.js
index 5425468..3ae07cb 100644
--- a/util/telchars.js
+++ b/util/telchars.js
@@ -81,6 +81,10 @@ const telchars = {
   isControlRight: buf => compareBufStr(buf, '\x1b[1;5C'),
   isControlLeft: buf => compareBufStr(buf, '\x1b[1;5D'),
 
+  isHome: buf => compareBufStr(buf, '\x1b[1~'),
+  isInsert: buf => compareBufStr(buf, '\x1b[2~'),
+  isDelete: buf => compareBufStr(buf, '\x1b[3~'),
+  isEnd: buf => compareBufStr(buf, '\x1b[4~'),
   isPageUp: buf => compareBufStr(buf, '\x1b[5~'),
   isPageDown: buf => compareBufStr(buf, '\x1b[6~'),