mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Fix backend tests
This commit is contained in:
parent
51af4350fc
commit
c69db62844
@ -3,8 +3,8 @@ extern crate termion;
|
|||||||
use ::backend;
|
use ::backend;
|
||||||
use ::event::{Event, Key};
|
use ::event::{Event, Key};
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use termion::input::TermRead;
|
use self::termion::input::TermRead;
|
||||||
use termion::raw::IntoRawMode;
|
use self::termion::raw::IntoRawMode;
|
||||||
use ::theme::{BaseColor, Color, ColorStyle, Effect};
|
use ::theme::{BaseColor, Color, ColorStyle, Effect};
|
||||||
|
|
||||||
pub struct Concrete {
|
pub struct Concrete {
|
||||||
|
@ -117,7 +117,7 @@ impl<'a> Printer<'a> {
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # use cursive::backend;
|
/// # use cursive::backend::{self, Backend};
|
||||||
/// # let b = backend::Concrete::init();
|
/// # let b = backend::Concrete::init();
|
||||||
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
||||||
/// printer.with_color(theme::ColorStyle::Highlight, |printer| {
|
/// printer.with_color(theme::ColorStyle::Highlight, |printer| {
|
||||||
@ -150,7 +150,7 @@ impl<'a> Printer<'a> {
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # use cursive::backend;
|
/// # use cursive::backend::{self, Backend};
|
||||||
/// # let b = backend::Concrete::init();
|
/// # let b = backend::Concrete::init();
|
||||||
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
||||||
/// printer.print_box((0,0), (6,4), false);
|
/// printer.print_box((0,0), (6,4), false);
|
||||||
|
@ -134,7 +134,7 @@ impl ScrollBase {
|
|||||||
/// # use cursive::view::ScrollBase;
|
/// # use cursive::view::ScrollBase;
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # use cursive::backend;
|
/// # use cursive::backend::{self, Backend};
|
||||||
/// # let scrollbase = ScrollBase::new();
|
/// # let scrollbase = ScrollBase::new();
|
||||||
/// # let b = backend::Concrete::init();
|
/// # let b = backend::Concrete::init();
|
||||||
/// # let printer = Printer::new((5,1), theme::load_default(), &b);
|
/// # let printer = Printer::new((5,1), theme::load_default(), &b);
|
||||||
|
Loading…
Reference in New Issue
Block a user