Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add missing TTY key translations for F1-F5 on Windows

  • Loading branch information...
Brandon Benvie authored and piscisaureus committed Dec 29, 2011
1 parent d489a01 commit f7b612550a8716b0266a83a86bad060e2688eb1b
Showing with 7 additions and 0 deletions.
  1. +7 −0 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;

0 comments on commit f7b6125

Please sign in to comment.
You can’t perform that action at this time.