diff options
author | Florrie <towerofnix@gmail.com> | 2019-09-20 16:52:13 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2019-09-20 16:52:13 -0300 |
commit | e69d506fdc2d0238cb592256aca5353ecb292816 (patch) | |
tree | 3324b9162f6c26dc7959868a4bd4494a65dddd6a /util | |
parent | e4ae17895cd673bdc8a8a2a060b835b0492daeb1 (diff) |
Suppot meta up/down/left/right keys
Diffstat (limited to 'util')
-rw-r--r-- | util/telchars.js | 5 |
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'), |