1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Add logging to test alt handling

cc #93
This commit is contained in:
Joe Wilm 2017-01-08 17:02:52 -08:00
parent b7f43ac023
commit b920d5d424

View file

@ -368,9 +368,11 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
// Didn't process a binding; print the provided character // Didn't process a binding; print the provided character
if let Some(mut string) = string { if let Some(mut string) = string {
// from ST // from ST
println!("process_key got string={:?}, mods={:?}, key={:?}", string, mods, key);
if string.len() == 1 && mods.contains(mods::ALT) { if string.len() == 1 && mods.contains(mods::ALT) {
string.insert(0, '\x1b'); string.insert(0, '\x1b');
} }
println!("process_key sending {:?}", string);
self.ctx.notifier.notify(string.into_bytes()); self.ctx.notifier.notify(string.into_bytes());
self.ctx.selection.clear(); self.ctx.selection.clear();