Struct cursive_core::backend::Dummy
source · pub struct Dummy;
Expand description
Dummy backend that does nothing and immediately exits.
Mostly used for testing.
Implementations§
Trait Implementations§
source§impl Backend for Dummy
impl Backend for Dummy
source§fn has_colors(&self) -> bool
fn has_colors(&self) -> bool
Should return
true
if this backend supports colors.source§fn screen_size(&self) -> Vec2
fn screen_size(&self) -> Vec2
Returns the screen size.
source§fn print_at_rep(&self, _pos: Vec2, _repetitions: usize, _text: &str)
fn print_at_rep(&self, _pos: Vec2, _repetitions: usize, _text: &str)
Efficient method to print repetitions of the same text. Read more
source§fn set_effect(&self, _: Effect)
fn set_effect(&self, _: Effect)
Enables the given effect. Read more
source§fn unset_effect(&self, _: Effect)
fn unset_effect(&self, _: Effect)
Disables the given effect.