termion/src
Matthew Nicholson ea06c6fd56 Modify Keys and Events to detect Esc key presses (#45)
* modify Keys and Events to detect Esc key presses

The strategy used here is to read two bytes at a time, going on the
assumption that escape sequences will consist of multi byte reads and
solitary Esc key presses will consist of single byte reads.

Tests had to be modified to account for these new multi byte reads by
including dummy bytes when a single byte was previously expected.

Fixes ticki/termion#43

* expand keys example to include Esc key presses

* add test for Esc key press
2016-10-26 11:53:36 +02:00
..
async.rs Default to the TTY device in async_stdin. 2016-09-24 20:04:46 +02:00
clear.rs Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support. 2016-07-23 16:40:27 +02:00
color.rs Derive PartialEq for Rgb type (#56) 2016-10-22 08:40:06 +02:00
cursor.rs Update the documentation. 2016-09-07 11:39:32 +02:00
event.rs Modify Keys and Events to detect Esc key presses (#45) 2016-10-26 11:53:36 +02:00
input.rs Modify Keys and Events to detect Esc key presses (#45) 2016-10-26 11:53:36 +02:00
lib.rs Get the tty device, get_tty 2016-07-29 19:49:29 +02:00
macros.rs Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support. 2016-07-23 16:40:27 +02:00
raw.rs Update the documentation. 2016-09-07 11:39:32 +02:00
scroll.rs Fix examples & merge 2016-07-23 18:50:33 +02:00
size.rs bug/lib.rs Allow musl builds (#58) 2016-10-20 14:28:34 +02:00
style.rs Update the documentation. 2016-09-07 11:39:32 +02:00
termios.rs Use libc termios struct 2016-03-10 07:05:08 +01:00
tty.rs Take a reference to the stream instead of the stream itself (in `is_tty` 2016-09-24 19:13:16 +02:00