extern crate rustty; extern crate oxide; use std::time::Duration; use rustty::{ Terminal, Event, }; use oxide::core::{ Widget, HorizontalAlign, VerticalAlign, ButtonResult, Button }; use oxide::{ Dialog, Label, StdButton, VerticalLayout, HorizontalLayout }; fn boxify(vec: Vec) -> Vec> { vec.into_iter().map(Box::new).map(|x| x as Box