mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix back-end warnings
This commit is contained in:
parent
2dc75c2ec0
commit
e33474dd74
@ -3,10 +3,9 @@ extern crate bear_lib_terminal;
|
|||||||
use ::backend;
|
use ::backend;
|
||||||
use ::event::{Event, Key};
|
use ::event::{Event, Key};
|
||||||
use self::bear_lib_terminal::Color as BltColor;
|
use self::bear_lib_terminal::Color as BltColor;
|
||||||
use self::bear_lib_terminal::geometry::{Point, Size};
|
use self::bear_lib_terminal::geometry::Size;
|
||||||
use self::bear_lib_terminal::terminal::{self, Event as BltEvent, KeyCode};
|
use self::bear_lib_terminal::terminal::{self, Event as BltEvent, KeyCode};
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::io::Write;
|
|
||||||
use ::theme::{BaseColor, Color, ColorStyle, Effect};
|
use ::theme::{BaseColor, Color, ColorStyle, Effect};
|
||||||
|
|
||||||
pub struct Concrete {
|
pub struct Concrete {
|
||||||
@ -15,7 +14,6 @@ pub struct Concrete {
|
|||||||
|
|
||||||
impl backend::Backend for Concrete {
|
impl backend::Backend for Concrete {
|
||||||
fn init() -> Self {
|
fn init() -> Self {
|
||||||
// TODO: Make this configurable?
|
|
||||||
terminal::open("Cursive", 80, 24);
|
terminal::open("Cursive", 80, 24);
|
||||||
terminal::set(terminal::config::Window::empty().resizeable(true));
|
terminal::set(terminal::config::Window::empty().resizeable(true));
|
||||||
|
|
||||||
@ -74,7 +72,7 @@ impl backend::Backend for Concrete {
|
|||||||
terminal::print_xy(x as i32, y as i32, text);
|
terminal::print_xy(x as i32, y as i32, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_refresh_rate(&mut self, fps: u32) {
|
fn set_refresh_rate(&mut self, _: u32) {
|
||||||
// TODO: unsupported
|
// TODO: unsupported
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,8 +5,10 @@ use theme;
|
|||||||
mod termion;
|
mod termion;
|
||||||
#[cfg(feature = "bear-lib-terminal")]
|
#[cfg(feature = "bear-lib-terminal")]
|
||||||
mod blt;
|
mod blt;
|
||||||
|
#[cfg(any(feature = "ncurses", feature = "pancurses"))]
|
||||||
mod curses;
|
mod curses;
|
||||||
|
|
||||||
|
#[cfg(any(feature = "ncurses", feature = "pancurses"))]
|
||||||
pub use self::curses::*;
|
pub use self::curses::*;
|
||||||
#[cfg(feature = "termion")]
|
#[cfg(feature = "termion")]
|
||||||
pub use self::termion::*;
|
pub use self::termion::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user