| 1 | //! An example how to retrieve the ANSI escape sequence as a `String`. |
|---|---|
| 2 | use anes::SaveCursorPosition; |
| 3 | |
| 4 | fn main() { |
| 5 | let string = format!("{}", SaveCursorPosition); |
| 6 | assert_eq!(&string, "\x1B 7"); |
| 7 | } |
| 8 |
| 1 | //! An example how to retrieve the ANSI escape sequence as a `String`. |
|---|---|
| 2 | use anes::SaveCursorPosition; |
| 3 | |
| 4 | fn main() { |
| 5 | let string = format!("{}", SaveCursorPosition); |
| 6 | assert_eq!(&string, "\x1B 7"); |
| 7 | } |
| 8 |