diff options
author | Simon Dahlberg <thezic@users.noreply.github.com> | 2019-01-17 22:42:12 +0200 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-01-17 20:42:12 +0000 |
commit | 8b155960708a0ff551c5fc8ec65d2c3c6d12e1da (patch) | |
tree | be24c630e3e967ab9834202679d3de63559287e3 /src/config/mod.rs | |
parent | 0d16478f5d997b6da5488885e15bfb09ca8e7f6d (diff) | |
download | alacritty-8b155960708a0ff551c5fc8ec65d2c3c6d12e1da.tar.gz alacritty-8b155960708a0ff551c5fc8ec65d2c3c6d12e1da.zip |
Add config option to send or not send ESC when ALT-key is pressed
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r-- | src/config/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<bool>, @@ -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; |