key-convert
Convert keycode sequence to key string
Get Started
Install from npm.
npm install key-convert
Example
;process.stdin.setRawModetrue;process.stdin.on'data',;
key pressed | output |
---|---|
A |
a |
⇧ A |
A |
^ A |
ctrl A |
↑ |
up |
^ home |
ctrl home |
F2 |
f2 |
Esc |
esc |
⎇ F9 |
alt f9 |
Usage
convert
convertchunk:Buffer:KeyInput
converting terminal-input sequences to key names.
KeyInput
;
Keys