1use std::io::{self, Write}; 2 3pub fn text(texto: &str) -> String{ 4 print!("{}",texto); 5 io::stdout().flush().unwrap(); 6 let mut x = String::new(); 7 io::stdin().read_line(&mut x).unwrap(); 8 x.trim().to_string() 9}