diff options
author | Tuomas Siipola <siiptuo@kapsi.fi> | 2017-02-22 21:52:37 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-02-22 14:49:29 -0800 |
commit | 7bb49fabfa0d2686e4e74c1c11362d6b6aade1ca (patch) | |
tree | 6d8512f2bc7d75be76d656a8d019e9e5ed90204e /src/config.rs | |
parent | 418df72a077cd85b14cbede78e281bb224515a40 (diff) | |
download | alacritty-7bb49fabfa0d2686e4e74c1c11362d6b6aade1ca.tar.gz alacritty-7bb49fabfa0d2686e4e74c1c11362d6b6aade1ca.zip |
Add hide cursor when typing option
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 11 |
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())?; |