oxidized_curses/window/window.rs
1use crate::utils::ScreenPoint;
2
3// default printing functions for ncurses
4pub trait Window {
5 /// Move the cursor to specific coordinates and print a string
6 fn move_print(&mut self, point: ScreenPoint, text: &str);
7
8 /// Print a string at the current cursor coordinates
9 fn print(&mut self, text: &str);
10
11 fn refresh(&mut self);
12
13 fn get_char(&mut self) -> char;
14}