use ansi_str_forked::AnsiStr; use owo_colors::{colors::*, OwoColorize}; pub fn main() { let text = "When the night has come" .fg::() .bg::() .bold() .to_string(); let cut = text.ansi_get(5..).expect("ansi_get mustn't fail"); println!("{text}"); println!("{cut}"); }