Module escape_sequence

Module escape_sequence 

Source
Expand description

Escape Sequence for the terminal.

There are a variety of escape sequences (see ANSI escape codes) for the terminal but we currently have only implemented “Set Graphics Mode”. More can be added to the enum as needed.

§Examples

    let s = EscapeSequence::SetGraphicsMode(vec![OP_BOLD, FG_BLACK, BG_WHITE]).to_string();
    assert_eq!(s, "\x1b[1;30;47m");

Enums§

EscapeSequence
An escape sequence for the terminal.