From 62744bf09c2ede8829dee89f1558ef919a63aefe Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 10 Jun 2022 07:30:26 -0700 Subject: [PATCH] exit_behavior = "Close" is now the default Tired of fielding questions about it :-/ refs: https://github.com/wez/wezterm/issues/2105 --- config/src/config.rs | 2 +- docs/changelog.md | 1 + docs/config/lua/config/exit_behavior.md | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/src/config.rs b/config/src/config.rs index 6e23b5100..9ded00829 100644 --- a/config/src/config.rs +++ b/config/src/config.rs @@ -1468,7 +1468,7 @@ pub enum ExitBehavior { impl Default for ExitBehavior { fn default() -> Self { - ExitBehavior::CloseOnCleanExit + ExitBehavior::Close } } diff --git a/docs/changelog.md b/docs/changelog.md index c8bad5941..290fb8de0 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -58,6 +58,7 @@ As features stabilize some brief notes about them will accumulate here. * Overriding config using the cli `--config` option will now error out and prevent starting up if unknown config options are specified, or if the value evaluates to `nil`. Unknown options continue to generate warnings (rather than errors) when observed in the config file so that you're not "locked out" of wezterm if you make a typo in the config file. * Windows: `allow_win32_input_mode` now defaults to `true` and enables using [win32-input-mode](https://github.com/microsoft/terminal/blob/main/doc/specs/%234999%20-%20Improved%20keyboard%20handling%20in%20Conpty.md) to send high-fidelity keyboard input to ConPTY. This means that win32 console applications, such as [FAR Manager](https://github.com/FarGroup/FarManager) that use the low level `INPUT_RECORD` API will now receive key-up events as well as events for modifier-only key presses. [#1509](https://github.com/wez/wezterm/issues/1509) [#2009](https://github.com/wez/wezterm/issues/2009) [#2098](https://github.com/wez/wezterm/issues/2098) [#1904](https://github.com/wez/wezterm/issues/1904) * Wayland: [enable_wayland](config/lua/config/enable_wayland.md) now defaults to `true`. [#2104](https://github.com/wez/wezterm/issues/2104) +* [exit_behavior](config/lua/config/exit_behavior.md) now defaults to `"Close"`. [#2105](https://github.com/wez/wezterm/issues/2105) #### Fixed * Flush after replying to XTGETTCAP and DECRQM. [#1850](https://github.com/wez/wezterm/issues/1850) [#1950](https://github.com/wez/wezterm/issues/1950) diff --git a/docs/config/lua/config/exit_behavior.md b/docs/config/lua/config/exit_behavior.md index 25a0cefd6..a77bfa7fc 100644 --- a/docs/config/lua/config/exit_behavior.md +++ b/docs/config/lua/config/exit_behavior.md @@ -32,3 +32,8 @@ the pane to remain open. See also: [clean_exit_codes](clean_exit_codes.md) for fine tuning what is considered to be a clean exit status. + +*Since: nightly builds only* + +The default is now `"Close"`. +