[−][src]Trait epkard::Frontend
The frontend for a narrative that a user can interact with
Required methods
fn background_color(&self) -> Color
Get the background color
fn set_background_color(&mut self, color: Color)
Set the background color
fn clear(&mut self)
Clear the display
fn print_colored<S: ToString>(&mut self, text: S, color: Color)
Print text to the display with the given color
fn newline(&mut self)
Print a newline to the display
fn input(&mut self) -> String
Get input from the user
Provided methods
fn print<S: ToString>(&mut self, text: S)
Print text to the display
fn println<S: ToString>(&mut self, text: S)
Print text and a newline to the display
Implementors
impl Frontend for CliFrontend
[src]
fn background_color(&self) -> Color
[src]
fn set_background_color(&mut self, color: Color)
[src]
fn clear(&mut self)
[src]
fn print_colored<S: ToString>(&mut self, text: S, color: Color)
[src]
fn newline(&mut self)
[src]
fn input(&mut self) -> String
[src]
impl<'a, N, F> Frontend for Runtime<'a, N, F> where
N: Node,
F: Frontend,
[src]
N: Node,
F: Frontend,