pub struct CursorConfig {Show 17 fields
pub cursor_blink: bool,
pub cursor_blink_interval: u64,
pub cursor_style: CursorStyle,
pub cursor_color: [u8; 3],
pub cursor_text_color: Option<[u8; 3]>,
pub lock_cursor_visibility: bool,
pub lock_cursor_style: bool,
pub lock_cursor_blink: bool,
pub cursor_guide_enabled: bool,
pub cursor_guide_color: [u8; 4],
pub cursor_shadow_enabled: bool,
pub cursor_shadow_color: [u8; 4],
pub cursor_shadow_offset: [f32; 2],
pub cursor_shadow_blur: f32,
pub cursor_boost: f32,
pub cursor_boost_color: [u8; 3],
pub unfocused_cursor_style: UnfocusedCursorStyle,
}Expand description
Cursor appearance and behavior configuration.
Controls the visual style, blinking, color, visibility locks, guide line, shadow, boost/glow, and unfocused cursor appearance.
Fields§
§cursor_blink: boolEnable cursor blinking
cursor_blink_interval: u64Cursor blink interval in milliseconds
cursor_style: CursorStyleCursor style (block, beam, underline)
cursor_color: [u8; 3]Cursor color [R, G, B] (0-255)
cursor_text_color: Option<[u8; 3]>Color of text under block cursor [R, G, B] (0-255) If not set (None), uses automatic contrast color Only affects block cursor style (beam and underline don’t obscure text)
lock_cursor_visibility: boolLock cursor visibility - prevent applications from hiding the cursor When true, the cursor remains visible regardless of DECTCEM escape sequences
lock_cursor_style: boolLock cursor style - prevent applications from changing the cursor style When true, the cursor style from config is always used, ignoring DECSCUSR escape sequences
lock_cursor_blink: boolLock cursor blink - prevent applications from enabling cursor blink When true and cursor_blink is false, applications cannot enable blinking cursor
cursor_guide_enabled: boolEnable horizontal guide line at cursor row for better tracking in wide terminals
cursor_guide_color: [u8; 4]Cursor guide color [R, G, B, A] (0-255), subtle highlight spanning full terminal width
cursor_shadow_enabled: boolEnable drop shadow behind cursor for better visibility against varying backgrounds
cursor_shadow_color: [u8; 4]Cursor shadow color [R, G, B, A] (0-255)
cursor_shadow_offset: [f32; 2]Cursor shadow offset in pixels [x, y]
cursor_shadow_blur: f32Cursor shadow blur radius in pixels
cursor_boost: f32Cursor boost (glow) intensity (0.0 = off, 1.0 = maximum boost) Adds a glow/highlight effect around the cursor for visibility
cursor_boost_color: [u8; 3]Cursor boost glow color [R, G, B] (0-255)
unfocused_cursor_style: UnfocusedCursorStyleCursor appearance when window is unfocused
- hollow: Show outline-only block cursor (default, standard terminal behavior)
- same: Keep same cursor style as when focused
- hidden: Hide cursor completely when unfocused
Trait Implementations§
Source§impl Clone for CursorConfig
impl Clone for CursorConfig
Source§fn clone(&self) -> CursorConfig
fn clone(&self) -> CursorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CursorConfig
impl Debug for CursorConfig
Source§impl Default for CursorConfig
impl Default for CursorConfig
Source§fn default() -> CursorConfig
fn default() -> CursorConfig
Source§impl<'de> Deserialize<'de> for CursorConfig
impl<'de> Deserialize<'de> for CursorConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CursorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CursorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CursorConfig
impl Serialize for CursorConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for CursorConfig
impl RefUnwindSafe for CursorConfig
impl Send for CursorConfig
impl Sync for CursorConfig
impl Unpin for CursorConfig
impl UnsafeUnpin for CursorConfig
impl UnwindSafe for CursorConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().