Skip to content

Instantly share code, notes, and snippets.

@MartinPavlik
Created March 14, 2020 08:43
Show Gist options
  • Save MartinPavlik/6fc89bdf093c5ad7c9c4abfac8c1652f to your computer and use it in GitHub Desktop.
Save MartinPavlik/6fc89bdf093c5ad7c9c4abfac8c1652f to your computer and use it in GitHub Desktop.
omxplayer key code checker
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