$cargorun--exampletext0Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod0tempor incididunt ut labore et.0Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod0tempor incididunt ut labore et.0Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod0tempor incididunt ut labore et.$catexamples/text.rs1externcratelipsum;2externcratemodern_terminal;34uselipsum::lipsum;5usemodern_terminal::{6components::text::{Text,TextAlignment},7core::{console::Console,style::Style},8};910fnmain()->std::io::Result<()>{11letmutwriter=std::io::stdout();12letmutconsole=Console::from_fd(&mutwriter);1314forcolorin["#FFFF00","blue","rgb(255,0,0)"]{15letcomponent=Text{16align:TextAlignment::Center,17text:lipsum(16),18styles:vec![19Style::Bold,20Style::Foreground(color.to_string()),21Style::Background("black".to_string()),22],23};2425console.render(&component)?;26}2728Ok(())29}