ANSI Escape Sequences provider & parser
A Rust library which provides an ANSI escape sequences (or codes, whatever you like more)
and a parser allowing you to parse data from the STDIN (or /dev/tty
) in the raw mode.
Sequences provider
Terminal support
Not all ANSI escape sequences are supported by all terminals. You can use the interactive-test to test them. Checkout the repository and then:
Examples
[]
= "0.1"
An example how to retrieve the ANSI escape sequence as a String
:
use SaveCursorPosition;
An example how to use the ANSI escape sequence:
use ;
use execute;
Sequences parser
You have to enable parser
feature in order to use the parser. It's disabled by default.
Examples
[]
= { = "0.1", = ["parser"] }
An example how to parse cursor position:
use ;
let mut parser = default;
parser.advance;
assert_eq!;
assert!;
License
The ANES crate is dual-licensed under Apache 2.0 and MIT terms.
Copyrights in the ANES project are retained by their contributors. No copyright assignment is required to contribute to the ANES project.