From f7b612550a8716b0266a83a86bad060e2688eb1b Mon Sep 17 00:00:00 2001 From: Brandon Benvie Date: Thu, 29 Dec 2011 02:39:56 -0500 Subject: [PATCH] Add missing TTY key translations for F1-F5 on Windows --- lib/tty.js | 7 +++++++ 1 file changed, 7 insertions(+) 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;