aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 3be8e4c8..bab2cc20 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -227,6 +227,10 @@ pub struct Config {
/// Visual bell configuration
#[serde(default)]
visual_bell: VisualBellConfig,
+
+ /// Hide cursor when typing
+ #[serde(default)]
+ hide_cursor_when_typing: bool,
}
#[cfg(not(target_os="macos"))]
@@ -273,6 +277,7 @@ impl Default for Config {
config_path: None,
visual_bell: Default::default(),
env: Default::default(),
+ hide_cursor_when_typing: Default::default(),
}
}
}
@@ -1008,6 +1013,12 @@ impl Config {
&self.env
}
+ /// Should hide cursor when typing
+ #[inline]
+ pub fn hide_cursor_when_typing(&self) -> bool {
+ self.hide_cursor_when_typing
+ }
+
fn load_from<P: Into<PathBuf>>(path: P) -> Result<Config> {
let path = path.into();
let raw = Config::read_file(path.as_path())?;