chjj / blessed

A high-level terminal interface library for node.js.
Other
11.2k stars 528 forks source link

Add keyup and keydown (currently there is only keypress, with repeat) #392

Open jaredkrinke opened 4 years ago

jaredkrinke commented 4 years ago

For some applications, it would be nice to get both keyup and keydown events instead of just keypress (which is logged once and then repeated after a delay).

Unfortunately, I have read that ANSI terminals only expose keypress, so this is likely not possible, but I wanted to open an issue anyway to get a more definitive answer (and to capture this potential limitation for posterity).