use crate::ui::Key; pub enum Action { None, // do nothing Open(String, String), // open(title, url) Keypress(Key), // unknown keypress Redraw, // redraw everything Draw(String), // draw something on screen Prompt(String, Box Action>), // query string, callback on success Error(String), // error message }