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:
parent
812c8bc14a
commit
3957a2555d
5 changed files with 17 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
Loading…
Reference in a new issue