Fix backend tests

This commit is contained in:
nabijaczleweli 2016-10-10 23:08:07 +02:00
parent 51af4350fc
commit c69db62844
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
3 changed files with 5 additions and 5 deletions

View File

@ -3,8 +3,8 @@ extern crate termion;
use ::backend;
use ::event::{Event, Key};
use std::io::Write;
use termion::input::TermRead;
use termion::raw::IntoRawMode;
use self::termion::input::TermRead;
use self::termion::raw::IntoRawMode;
use ::theme::{BaseColor, Color, ColorStyle, Effect};
pub struct Concrete {

View File

@ -117,7 +117,7 @@ impl<'a> Printer<'a> {
/// ```no_run
/// # use cursive::Printer;
/// # use cursive::theme;
/// # use cursive::backend;
/// # use cursive::backend::{self, Backend};
/// # let b = backend::Concrete::init();
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
/// printer.with_color(theme::ColorStyle::Highlight, |printer| {
@ -150,7 +150,7 @@ impl<'a> Printer<'a> {
/// ```no_run
/// # use cursive::Printer;
/// # use cursive::theme;
/// # use cursive::backend;
/// # use cursive::backend::{self, Backend};
/// # let b = backend::Concrete::init();
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
/// printer.print_box((0,0), (6,4), false);

View File

@ -134,7 +134,7 @@ impl ScrollBase {
/// # use cursive::view::ScrollBase;
/// # use cursive::Printer;
/// # use cursive::theme;
/// # use cursive::backend;
/// # use cursive::backend::{self, Backend};
/// # let scrollbase = ScrollBase::new();
/// # let b = backend::Concrete::init();
/// # let printer = Printer::new((5,1), theme::load_default(), &b);