terminal 0.2.1

Unified API over different TUI libraries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// A mask that can be used to track all mouse events.
pub(crate) const MOUSE_EVENT_MASK: u32 =
    crosscurses::ALL_MOUSE_EVENTS | crosscurses::REPORT_MOUSE_POSITION;

/// A sequence of escape codes to enable terminal mouse support.
/// We use this directly instead of using `MouseTerminal` from termion.
pub(crate) const ENABLE_MOUSE_CAPTURE: &str = "\x1B[?1002h";

/// A sequence of escape codes to disable terminal mouse support.
/// We use this directly instead of using `MouseTerminal` from termion.
pub(crate) const DISABLE_MOUSE_CAPTURE: &str = "\x1B[?1002l";