[][src]Function cansi::construct_text_no_codes

pub fn construct_text_no_codes(
    categorised_slices: &CategorisedSlices<'_>
) -> String

Constructs a string of the categorised text without the ANSI escape characters.

Example

use cansi::*;
let categorised = categorise_text("\x1b[30mH\x1b[31me\x1b[32ml\x1b[33ml\x1b[34mo");
assert_eq!("Hello", &construct_text_no_codes(&categorised));