summaryrefslogtreecommitdiffstats
path: root/vendor/anes/examples/string.rs
blob: bd81c368eecba8074642a155b533862f0cc42437 (plain)
1
2
3
4
5
6
7
//! An example how to retrieve the ANSI escape sequence as a `String`.
use anes::SaveCursorPosition;

fn main() {
    let string = format!("{}", SaveCursorPosition);
    assert_eq!(&string, "\x1B7");
}