pub enum SetCursorStyle {
    DefaultUserShape,
    BlinkingBlock,
    SteadyBlock,
    BlinkingUnderScore,
    SteadyUnderScore,
    BlinkingBar,
    SteadyBar,
}
Expand description

A command that sets the style of the cursor. It uses two types of escape codes, one to control blinking, and the other the shape.

Note

  • Commands must be executed/queued for execution otherwise they do nothing.

Variants§

§

DefaultUserShape

Default cursor shape configured by the user.

§

BlinkingBlock

A blinking block cursor shape (■).

§

SteadyBlock

A non blinking block cursor shape (inverse of BlinkingBlock).

§

BlinkingUnderScore

A blinking underscore cursor shape(_).

§

SteadyUnderScore

A non blinking underscore cursor shape (inverse of BlinkingUnderScore).

§

BlinkingBar

A blinking cursor bar shape (|)

§

SteadyBar

A steady cursor bar shape (inverse of BlinkingBar).

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Write an ANSI representation of this command to the given writer. An ANSI code can manipulate the terminal by writing it to the terminal buffer. However, only Windows 10 and UNIX systems support this. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.