Struct term_model::config::Config
source · pub struct Config<T> {Show 17 fields
pub padding: Option<Delta<u8>>,
pub env: HashMap<String, String>,
pub font: Font,
pub colors: Colors,
pub window: WindowConfig,
pub selection: Selection,
pub shell: Option<Shell<'static>>,
pub config_path: Option<PathBuf>,
pub visual_bell: VisualBellConfig,
pub scrolling: Scrolling,
pub cursor: Cursor,
pub working_directory: Option<PathBuf>,
pub debug: Debug,
pub ui_config: T,
pub hold: bool,
pub render_timer: Option<bool>,
pub persistent_logging: Option<bool>,
/* private fields */
}
Expand description
Top-level config type
Fields§
§padding: Option<Delta<u8>>
Pixel padding
env: HashMap<String, String>
TERM env variable
font: Font
Font configuration
colors: Colors
§window: WindowConfig
Window configuration
selection: Selection
§shell: Option<Shell<'static>>
Path to a shell program to run on startup
config_path: Option<PathBuf>
Path where config was loaded from
visual_bell: VisualBellConfig
Visual bell configuration
scrolling: Scrolling
How much scrolling history to keep
cursor: Cursor
Cursor configuration
working_directory: Option<PathBuf>
Shell startup directory
debug: Debug
Debug options
ui_config: T
Additional configuration options not directly required by the terminal
hold: bool
Remain open after child process exits
render_timer: Option<bool>
§persistent_logging: Option<bool>
Implementations§
source§impl<T> Config<T>
impl<T> Config<T>
pub fn tabspaces(&self) -> usize
pub fn draw_bold_text_with_bright_colors(&self) -> bool
sourcepub fn render_timer(&self) -> bool
pub fn render_timer(&self) -> bool
Should show render timer
sourcepub fn live_config_reload(&self) -> bool
pub fn live_config_reload(&self) -> bool
Live config reload
pub fn set_live_config_reload(&mut self, live_config_reload: bool)
pub fn dynamic_title(&self) -> bool
sourcepub fn cursor_text_color(&self) -> Option<Rgb>
pub fn cursor_text_color(&self) -> Option<Rgb>
Cursor foreground color
sourcepub fn cursor_cursor_color(&self) -> Option<Color>
pub fn cursor_cursor_color(&self) -> Option<Color>
Cursor background color
pub fn set_dynamic_title(&mut self, dynamic_title: bool)
sourcepub fn alt_send_esc(&self) -> bool
pub fn alt_send_esc(&self) -> bool
Send escape sequences using the alt key
sourcepub fn persistent_logging(&self) -> bool
pub fn persistent_logging(&self) -> bool
Keep the log file after quitting Alacritty
pub fn background_opacity(&self) -> f32
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Config<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Config<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: PartialEq> PartialEq for Config<T>
impl<T: PartialEq> PartialEq for Config<T>
impl<T> StructuralPartialEq for Config<T>
Auto Trait Implementations§
impl<T> Freeze for Config<T>where
T: Freeze,
impl<T> RefUnwindSafe for Config<T>where
T: RefUnwindSafe,
impl<T> Send for Config<T>where
T: Send,
impl<T> Sync for Config<T>where
T: Sync,
impl<T> Unpin for Config<T>where
T: Unpin,
impl<T> UnwindSafe for Config<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more