oxidized-curses 0.1.3

A rusty ncurses binding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::utils::ScreenPoint;

// default printing functions for ncurses
pub trait Window {
    /// Move the cursor to specific coordinates and print a string
    fn move_print(&mut self, point: ScreenPoint, text: &str);

    /// Print a string at the current cursor coordinates
    fn print(&mut self, text: &str);

    fn refresh(&mut self);

    fn get_char(&mut self) -> char;
}