diff options
author | David Hewitt <1939362+davidhewitt@users.noreply.github.com> | 2018-12-28 16:01:58 +0000 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-12-28 16:01:58 +0000 |
commit | f1bc6802e1d0d03feaa43e61c2bf465795a96da9 (patch) | |
tree | d2b993eb020631ca1de14b47eb0d9213ee37dd90 /src/config.rs | |
parent | ec6f756946c998d327316d370b381003e51d3a70 (diff) | |
download | alacritty-f1bc6802e1d0d03feaa43e61c2bf465795a96da9.tar.gz alacritty-f1bc6802e1d0d03feaa43e61c2bf465795a96da9.zip |
Add support for Windows ConPTY APIv0.2.4-conpty
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 76d9d7e3..547bce1f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -541,6 +541,12 @@ pub struct Config { // TODO: DEPRECATED #[serde(default, deserialize_with = "failure_default")] unfocused_hollow_cursor: Option<bool>, + + /// Enable experimental conpty backend instead of using winpty. + /// Will only take effect on Windows 10 Oct 2018 and later. + #[cfg(windows)] + #[serde(default, deserialize_with="failure_default")] + enable_experimental_conpty_backend: bool } fn failure_default_vec<'a, D, T>(deserializer: D) -> ::std::result::Result<Vec<T>, D::Error> @@ -1709,6 +1715,13 @@ impl Config { self.colors.cursor.cursor.map(|_| Color::Named(NamedColor::Cursor)) } + /// Enable experimental conpty backend (Windows only) + #[cfg(windows)] + #[inline] + pub fn enable_experimental_conpty_backend(&self) -> bool { + self.enable_experimental_conpty_backend + } + // Update the history size, used in ref tests pub fn set_history(&mut self, history: u32) { self.scrolling.history = history; |