etui/cursor

Types

pub type CursorShape {
  BlockBlink
  Block
  UnderlineBlink
  Underline
  BarBlink
  Bar
}

Constructors

  • BlockBlink
  • Block
  • UnderlineBlink
  • Underline
  • BarBlink
  • Bar

Values

pub fn hide() -> String
pub fn move_to(row: Int, col: Int) -> String

Move cursor to 1-based (row, col) position.

pub fn restore() -> String

Restore cursor position.

pub fn save() -> String

Save cursor position.

pub fn set_shape(shape: CursorShape) -> String

ANSI sequence to change the cursor shape.

pub fn show() -> String
Search Document