pub struct UiConfig {Show 23 fields
pub env: HashMap<String, String>,
pub scrolling: Scrolling,
pub cursor: Cursor,
pub selection: Selection,
pub font: Font,
pub window: WindowConfig,
pub mouse: Mouse,
pub debug: Debug,
pub alt_send_esc: Option<bool>,
pub live_config_reload: bool,
pub bell: BellConfig,
pub colors: Colors,
pub config_paths: Vec<PathBuf>,
pub hints: Hints,
pub ipc_socket: bool,
pub terminal: Terminal,
pub shell: Option<Program>,
pub working_directory: Option<PathBuf>,
keyboard: Keyboard,
draw_bold_text_with_bright_colors: bool,
key_bindings: Option<KeyBindings>,
mouse_bindings: Option<MouseBindings>,
import: Vec<String>,
}
Fields§
§env: HashMap<String, String>
Extra environment variables.
scrolling: Scrolling
How much scrolling history to keep.
cursor: Cursor
Cursor configuration.
selection: Selection
Selection configuration.
font: Font
Font configuration.
window: WindowConfig
Window configuration.
mouse: Mouse
Mouse configuration.
debug: Debug
Debug options.
alt_send_esc: Option<bool>
Send escape sequences using the alt key.
live_config_reload: bool
Live config reload.
bell: BellConfig
Bell configuration.
colors: Colors
RGB values for colors.
config_paths: Vec<PathBuf>
Path where config was loaded from.
hints: Hints
Regex hints for interacting with terminal content.
ipc_socket: bool
Offer IPC through a unix socket.
terminal: Terminal
Config for the alacritty_terminal itself.
shell: Option<Program>
Path to a shell program to run on startup.
working_directory: Option<PathBuf>
Shell startup directory.
keyboard: Keyboard
Keyboard configuration.
draw_bold_text_with_bright_colors: bool
Should draw bold text with brighter colors instead of bold font.
key_bindings: Option<KeyBindings>
Keybindings.
mouse_bindings: Option<MouseBindings>
Bindings for the mouse.
import: Vec<String>
Configuration file imports.
This is never read since the field is directly accessed through the config’s
toml::Value
, but still present to prevent unused field warnings.
Implementations§
source§impl UiConfig
impl UiConfig
sourcepub fn term_options(&self) -> TermConfig
pub fn term_options(&self) -> TermConfig
Derive TermConfig
from the config.
sourcepub fn pty_config(&self) -> PtyOptions
pub fn pty_config(&self) -> PtyOptions
Derive PtyOptions
from the config.
sourcepub fn generate_hint_bindings(&mut self)
pub fn generate_hint_bindings(&mut self)
Generate key bindings for all keyboard hints.
pub fn window_opacity(&self) -> f32
pub fn key_bindings(&self) -> &[Binding<BindingKey>]
pub fn mouse_bindings(&self) -> &[Binding<MouseButton>]
pub fn draw_bold_text_with_bright_colors(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for UiConfig
impl<'de> Deserialize<'de> for UiConfig
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>,
source§impl PartialEq<UiConfig> for UiConfig
impl PartialEq<UiConfig> for UiConfig
source§impl<'de> SerdeReplace for UiConfig
impl<'de> SerdeReplace for UiConfig
impl StructuralPartialEq for UiConfig
Auto Trait Implementations§
impl !RefUnwindSafe for UiConfig
impl !Send for UiConfig
impl !Sync for UiConfig
impl Unpin for UiConfig
impl !UnwindSafe for UiConfig
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.