Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
vendor
/
anes-0.1.6
/
examples
/
string.rs
blob: bd81c368eecba8074642a155b533862f0cc42437 [
file
] [
log
] [
blame
] [
edit
]
//! 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"
);
}