aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/config
diff options
context:
space:
mode:
authorAndrew Borg (Kashin) <1192958+aborg-dev@users.noreply.github.com>2025-01-16 15:04:21 +0000
committerGitHub <noreply@github.com>2025-01-16 15:04:21 +0000
commit5e78d20c709cb1ab8d44ca7a8702cc26d779227c (patch)
treef5174dfb36771fbfb149b338f000ab27c119baab /alacritty/src/config
parentc9c41e637ac49f3cd67cf0362c596ae9d947f896 (diff)
downloadr-alacritty-5e78d20c709cb1ab8d44ca7a8702cc26d779227c.tar.gz
r-alacritty-5e78d20c709cb1ab8d44ca7a8702cc26d779227c.tar.bz2
r-alacritty-5e78d20c709cb1ab8d44ca7a8702cc26d779227c.zip
Add option to drain PTY on shutdown
This patch removes the `hold` option on `alacritty_terminal` in favor of a `drain_on_exit` option, which will drain the PTY before shutdown. The hold logic is instead handled in `alacritty`.
Diffstat (limited to 'alacritty/src/config')
-rw-r--r--alacritty/src/config/ui_config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/config/ui_config.rs b/alacritty/src/config/ui_config.rs
index b44bda0d..53310090 100644
--- a/alacritty/src/config/ui_config.rs
+++ b/alacritty/src/config/ui_config.rs
@@ -130,7 +130,7 @@ impl UiConfig {
let shell = self.terminal.shell.clone().or_else(|| self.shell.clone()).map(Into::into);
let working_directory =
self.working_directory.clone().or_else(|| self.general.working_directory.clone());
- PtyOptions { working_directory, shell, hold: false, env: HashMap::new() }
+ PtyOptions { working_directory, shell, drain_on_exit: false, env: HashMap::new() }
}
/// Generate key bindings for all keyboard hints.