nu_ansi_term

Function sub_string

Source
pub fn sub_string<'a>(
    start: usize,
    len: usize,
    strs: &AnsiStrings<'a>,
) -> Vec<AnsiString<'static>>
Expand description

Return a substring of the given AnsiStrings sequence, while keeping the formatting.