Skip to main content

Crate nano_cursor

Crate nano_cursor 

Source
Expand description

Draw a terminal cursor as a styled cell in a ratatui buffer.

Terminals are free to ignore OSC 12, and some do: Warp renders the cursor as a widget in its own UI and colours it from its theme, so no escape can reach it. This crate sidesteps the negotiation by painting the cursor into the frame the application is already drawing.

Structs§

Cursor
A cursor to paint into a buffer.
Report
What the caller must do after rendering.

Enums§

Ink
The colour of the glyph under a Shape::Block cursor.
Shape
What the cursor looks like.