mod ansi;
mod backend;
mod base64;
mod clock;
mod cmd;
mod color;
mod environ;
mod exec;
#[cfg(unix)]
mod guard;
mod input;
mod key;
mod mode;
mod mouse;
mod msg;
mod program;
#[cfg(unix)]
mod reader;
mod renderer;
pub mod style;
#[cfg(unix)]
mod sys;
#[cfg(unix)]
mod terminal;
mod unicode;
mod view;
pub use backend::{Backend, Input, InputSink};
pub use cmd::{
Cmd, ExecCommand, batch, clear_screen, every, exec, exec_command, interrupt, println, quit,
raw, read_clipboard, read_primary_clipboard, release_terminal, repaint,
request_background_color, request_capability, request_cursor_color, request_cursor_position,
request_foreground_color, request_terminal_version, request_window_size, restore_terminal,
sequence, set_clipboard, set_primary_clipboard, suspend, tick,
};
pub use color::{ColorProfile, Rgb};
pub use environ::Environment;
pub use key::{Key, KeyCode, KeyMod};
pub use mode::{
KeyboardEnhancements, KeyboardEnhancementsReport, ModeSetting, ReportedMode, TerminalMode,
};
pub use mouse::{Mouse, MouseButton, MouseMode};
pub use msg::{ClipboardSelection, ColorScheme, Error, Msg, Size};
pub use program::{Program, Sender};
#[cfg(unix)]
pub use terminal::Terminal;
pub use view::{Cursor, CursorShape, ProgressBar, ProgressBarState, View};
pub mod testing;
pub trait Model {
type Msg: Send + 'static;
fn init(&mut self) -> Cmd<Self::Msg> {
Cmd::none()
}
fn update(&mut self, msg: Msg<Self::Msg>) -> Cmd<Self::Msg>;
fn view(&self) -> View;
}