Created
March 14, 2020 08:43
-
-
Save MartinPavlik/6fc89bdf093c5ad7c9c4abfac8c1652f to your computer and use it in GitHub Desktop.
omxplayer key code checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readline = require('readline'); | |
readline.emitKeypressEvents(process.stdin); | |
process.stdin.setRawMode(true); | |
process.stdin.on('keypress', (str, key) => { | |
console.log(str) | |
console.log(key) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment