aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-01-08 17:02:52 -0800
committerJoe Wilm <joe@jwilm.com>2017-01-08 17:02:52 -0800
commitb920d5d424d969d215f23be6ff37c2611b7c4bcf (patch)
treece7952986d5d0e186d8386564ea3c5d5af61abba
parentb7f43ac0236d5dcaa1e6c7d3a22189faa4342932 (diff)
downloadalacritty-alt-key-tester.tar.gz
alacritty-alt-key-tester.zip
Add logging to test alt handlingalt-key-tester
cc #93
-rw-r--r--src/input.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 47ce52fa..d6d597e1 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -368,9 +368,11 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
// Didn't process a binding; print the provided character
if let Some(mut string) = string {
// from ST
+ println!("process_key got string={:?}, mods={:?}, key={:?}", string, mods, key);
if string.len() == 1 && mods.contains(mods::ALT) {
string.insert(0, '\x1b');
}
+ println!("process_key sending {:?}", string);
self.ctx.notifier.notify(string.into_bytes());
self.ctx.selection.clear();