use super::EdState;
mod dummy_ui;
pub use dummy_ui::DummyUI;
pub trait UI {
fn print_message(&mut self,
data: &str,
) -> Result<(), &'static str>;
fn get_command(&mut self,
ed: EdState,
prefix: Option<char>,
) -> Result<String, &'static str>;
fn get_input(&mut self,
ed: EdState,
terminator: char,
#[cfg(feature = "initial_input_data")]
initial_buffer: Option<Vec<String>>,
) -> Result<Vec<String>, &'static str>;
fn print_selection(&mut self,
ed: EdState,
selection: (usize, usize),
numbered: bool,
literal: bool,
) -> Result<(), &'static str>;
}