termion/examples
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 Update the documentation. 2016-09-07 11:39:32 +02:00
click.rs Fix the tests 2016-07-23 20:41:43 +02:00
color.rs Fix examples & merge 2016-07-23 18:50:33 +02:00
is_tty.rs Change is_tty example to conform to new signature (#52) 2016-10-07 07:43:10 +02:00
keys.rs Modify Keys and Events to detect Esc key presses (#45) 2016-10-26 11:53:36 +02:00
mouse.rs added mouse hold support (#48) 2016-09-07 11:05:41 +02:00
rainbow.rs Fix examples & merge 2016-07-23 18:50:33 +02:00
read.rs Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support. 2016-07-23 16:40:27 +02:00
rustc_fun.rs Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support. 2016-07-23 16:40:27 +02:00
simple.rs Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support. 2016-07-23 16:40:27 +02:00
size.rs Libterm is now termion 2016-03-15 21:36:33 +01:00
truecolor.rs Termion 1.0.0: Complete overhaul of how escape codes are handled, add truecolor support. 2016-07-23 16:40:27 +02:00