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

Deprecate the WinPTY backend

This commit is contained in:
Christian Duerr 2020-11-06 17:33:02 +00:00 committed by GitHub
parent 812c8bc14a
commit 3957a2555d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 7 deletions

View file

@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- The snapcraft.yaml file has been removed - The snapcraft.yaml file has been removed
- Updated `setab`/`setaf` capabilities in `alacritty-direct` to use colons - Updated `setab`/`setaf` capabilities in `alacritty-direct` to use colons
- WinPTY is now enabled only when targeting MSVC - WinPTY is now enabled only when targeting MSVC
- Deprecated the WinPTY backend feature, disabling it by default
### Added ### Added

View file

@ -56,7 +56,7 @@ winapi = { version = "0.3.7", features = ["impl-default", "wincon"]}
embed-resource = "1.3" embed-resource = "1.3"
[features] [features]
default = ["wayland", "x11", "winpty"] default = ["wayland", "x11"]
x11 = ["copypasta/x11", "glutin/x11", "x11-dl"] x11 = ["copypasta/x11", "glutin/x11", "x11-dl"]
wayland = ["copypasta/wayland", "glutin/wayland", "wayland-client"] wayland = ["copypasta/wayland", "glutin/wayland", "wayland-client"]
winpty = ["alacritty_terminal/winpty"] winpty = ["alacritty_terminal/winpty"]

View file

@ -312,6 +312,15 @@ fn print_deprecation_warnings(config: &Config) {
"Config dynamic_title is deprecated; please use window.dynamic_title instead", "Config dynamic_title is deprecated; please use window.dynamic_title instead",
) )
} }
#[cfg(all(windows, not(feature = "winpty")))]
if config.winpty_backend {
warn!(
target: LOG_TARGET_CONFIG,
"Config winpty_backend is deprecated and requires a compilation flag; it should be \
removed from the config",
)
}
} }
#[cfg(test)] #[cfg(test)]

View file

@ -41,7 +41,7 @@ mio-anonymous-pipes = "0.1"
winpty = { version = "0.2.0", optional = true } winpty = { version = "0.2.0", optional = true }
[features] [features]
default = ["winpty"] default = []
bench = [] bench = []
[dev-dependencies] [dev-dependencies]

View file

@ -55,11 +55,6 @@ pub struct Config<T> {
#[serde(default, deserialize_with = "failure_default")] #[serde(default, deserialize_with = "failure_default")]
pub cursor: Cursor, pub cursor: Cursor,
/// Use WinPTY backend even if ConPTY is available.
#[cfg(windows)]
#[serde(default, deserialize_with = "failure_default")]
pub winpty_backend: bool,
/// Shell startup directory. /// Shell startup directory.
#[serde(default, deserialize_with = "option_explicit_none")] #[serde(default, deserialize_with = "option_explicit_none")]
pub working_directory: Option<PathBuf>, pub working_directory: Option<PathBuf>,
@ -72,6 +67,11 @@ pub struct Config<T> {
#[serde(skip)] #[serde(skip)]
pub hold: bool, pub hold: bool,
// TODO: DEPRECATED
#[cfg(windows)]
#[serde(default, deserialize_with = "failure_default")]
pub winpty_backend: bool,
// TODO: DEPRECATED // TODO: DEPRECATED
#[serde(default, deserialize_with = "failure_default")] #[serde(default, deserialize_with = "failure_default")]
pub visual_bell: Option<BellConfig>, pub visual_bell: Option<BellConfig>,