aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-23 09:48:31 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-23 09:48:31 -0700
commit00223b32c98a11e6c207f19bb1d29fd088d33317 (patch)
treedfa7989815c3e461e73ec8cef7f786b12c122f76 /src/macros.rs
parent09600a3d402a08c94803c00624fa7ac7bcfad73e (diff)
downloadr-alacritty-00223b32c98a11e6c207f19bb1d29fd088d33317.tar.gz
r-alacritty-00223b32c98a11e6c207f19bb1d29fd088d33317.tar.bz2
r-alacritty-00223b32c98a11e6c207f19bb1d29fd088d33317.zip
Implement special input handling
There's a number of keys/combinations that should emit escape sequences to the PTY when triggered. This commit adds a framework to support that. The input::Processor is a type which tracks state of modifier keys. When special keys (like arrow, function) are detected, the processor pulls up a list of candidate escapes to send, and picks the first one based on terminal mode and active modifier keys. The input::Processor is generic over the thing receiving the escape sequences, the input::Notify type. Included is a wrapper for `&mut io::Write` which implements input::Notify and is currently used to connect the processor to the PTY stream. This added handling of the APP_CURSOR mode which changes affects input processing.
Diffstat (limited to 'src/macros.rs')
0 files changed, 0 insertions, 0 deletions