diff options
author | Brandon Benvie <brandon@bbenvie.com> | 2011-12-29 11:39:56 +0400 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-01-18 19:00:55 +0400 |
commit | f7b612550a8716b0266a83a86bad060e2688eb1b (patch) | |
tree | fc956bb9f4f55b9a57a1a6f8b95cb85762d2bd03 /lib | |
parent | d489a01f81d84739bde92e77b023f4b934c59212 (diff) |
Add missing TTY key translations for F1-F5 on Windows
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tty.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tty.js b/lib/tty.js index 32ba512d525..dccda5a4812 100644 --- a/lib/tty.js +++ b/lib/tty.js @@ -225,6 +225,13 @@ ReadStream.prototype._emitKey = function(s) { case '[13~': key.name = 'f3'; break; case '[14~': key.name = 'f4'; break; + /* from Cygwin and used in libuv */ + case '[[A': key.name = 'f1'; break; + case '[[B': key.name = 'f2'; break; + case '[[C': key.name = 'f3'; break; + case '[[D': key.name = 'f4'; break; + case '[[E': key.name = 'f5'; break; + /* common */ case '[15~': key.name = 'f5'; break; case '[17~': key.name = 'f6'; break; |