#[cfg(feature = "std")] use std::io::stdout; use tooey::objects::{Background, ColourPrompt}; use tooey::types::{Colour, ColourChar, Terminal}; fn main() { let mut terminal: Terminal = Terminal::new(70, 11); let prompt = ColourPrompt::new("Hello.").bg_rgb(255, 0, 0); terminal.push_object(Background(Colour::Rgb(0, 255, 0))); terminal.push_object(prompt); terminal.frame(); #[cfg(feature = "std")] terminal.draw(stdout()).unwrap(); }