Closed
Description
This issue was originally filed by @kaendfinger
I read an article (http://stackoverflow.com/questions/5006821/nodejs-how-to-read-keystrokes-from-stdin) about reading keystrokes in nodejs.
I would like to see a simple API for keypresses.
Example:
stdin.onKeyPress.listen((KeyPressEvent event) {
if (event.ctrl && event.key == "b") {
print("You Pressed CTRL+B");
}
// Some Way to Prevent the Key from being written to stdout.
});