1 2 3 4 5 6 7 8 9 10 11 12 13
use crossterm::cursor::CursorShape;
/// Maps cursor shapes to each edit mode (emacs, vi normal & vi insert).
/// If any of the fields is `None`, the cursor won't get changed by Reedline for that mode.
#[derive(Default)]
pub struct CursorConfig {
/// The cursor to be used when in vi insert mode
pub vi_insert: Option<CursorShape>,
/// The cursor to be used when in vi normal mode
pub vi_normal: Option<CursorShape>,
/// The cursor to be used when in emacs mode
pub emacs: Option<CursorShape>,
}