Skip to main content
escape_and_wrap_content
roowho2_
lib
0.1.0
In roowho2_
lib::
server::
walld::
tty_
utils
roowho2_lib
::
server
::
walld
::
tty_utils
Function
escape_
and_
wrap_
content
Copy item path
Source
pub fn escape_and_wrap_content(input: &
str
, wrap_width:
Option
<
usize
>) ->
String
Expand description
Escape non-printable characters as
^X
Rewrite LF TO CRLF
Wrap at
wrap_width
columns if given.