diff options
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; |