File: string.rs

package info (click to toggle)
rust-anes 0.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 284 kB
  • sloc: makefile: 2
file content (7 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (16)
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");
}