Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.22 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.22 KB

key-capture

publish

Package

Language: Japanese

About

This turns off ECHO etc. This is useful for building CLI apps. It supports 184key combinations.

Install

~/.npmrc

@8128-33550336:registry=https://npm.pkg.github.com

//npm.pkg.github.com/:_authToken=YourTokenHere
$ npm i @8128-33550336/key-capture

Example

Usage

const capture = createCapture();
capture.start();

capture.keyEventEmitter.on("Control.C", () => {
  process.exit(0);
});

References

http://www.setgetweb.com/p/i5/rzaiwspecial.htm https://invisible-island.net/xterm/xterm-function-keys.html https://web.archive.org/web/20121225024852/http://www.climagic.org/mirrors/VT100_Escape_Codes.html https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Single-character-functions https://nxmnpg.lemoda.net/ja/5/terminfo https://invisible-island.net/xterm/ctlseqs/ctlseqs.pdf pp.36-41

We welcome issues and pull requests.