Type Alias ansi_term::ANSIByteStrings

source ·
pub type ANSIByteStrings<'a> = ANSIGenericStrings<'a, [u8]>;
Expand description

A set of ANSIByteStrings collected together, in order to be written with a minimum of control characters.

Aliased Type§

struct ANSIByteStrings<'a>(pub &'a [ANSIGenericString<'a, [u8]>]);

Fields§

§0: &'a [ANSIGenericString<'a, [u8]>]

Implementations§

source§

impl<'a> ANSIByteStrings<'a>

source

pub fn write_to<W: Write>(&self, w: &mut W) -> Result<()>

Write ANSIByteStrings to an io::Write. This writes the minimal escape sequences for the associated Styles around each set of bytes.