From 8b155960708a0ff551c5fc8ec65d2c3c6d12e1da Mon Sep 17 00:00:00 2001 From: Simon Dahlberg Date: Thu, 17 Jan 2019 22:42:12 +0200 Subject: Add config option to send or not send ESC when ALT-key is pressed --- src/config/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index fd40776d..836fe483 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -538,6 +538,10 @@ pub struct Config { #[serde(default, deserialize_with = "failure_default")] enable_experimental_conpty_backend: bool, + /// Send escape sequences using the alt key. + #[serde(default = "default_true_bool", deserialize_with = "deserialize_true_bool")] + alt_send_esc: bool, + // TODO: DEPRECATED custom_cursor_colors: Option, @@ -1819,6 +1823,12 @@ impl Config { self.enable_experimental_conpty_backend } + /// Send escape sequences using the alt key + #[inline] + pub fn alt_send_esc(&self) -> bool { + self.alt_send_esc + } + // Update the history size, used in ref tests pub fn set_history(&mut self, history: u32) { self.scrolling.history = history; -- cgit