mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +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 ::event::{Event, Key};
|
||||
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 std::collections::BTreeMap;
|
||||
use std::io::Write;
|
||||
use ::theme::{BaseColor, Color, ColorStyle, Effect};
|
||||
|
||||
pub struct Concrete {
|
||||
@ -15,7 +14,6 @@ pub struct Concrete {
|
||||
|
||||
impl backend::Backend for Concrete {
|
||||
fn init() -> Self {
|
||||
// TODO: Make this configurable?
|
||||
terminal::open("Cursive", 80, 24);
|
||||
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);
|
||||
}
|
||||
|
||||
fn set_refresh_rate(&mut self, fps: u32) {
|
||||
fn set_refresh_rate(&mut self, _: u32) {
|
||||
// TODO: unsupported
|
||||
}
|
||||
|
||||
|
@ -5,8 +5,10 @@ use theme;
|
||||
mod termion;
|
||||
#[cfg(feature = "bear-lib-terminal")]
|
||||
mod blt;
|
||||
#[cfg(any(feature = "ncurses", feature = "pancurses"))]
|
||||
mod curses;
|
||||
|
||||
#[cfg(any(feature = "ncurses", feature = "pancurses"))]
|
||||
pub use self::curses::*;
|
||||
#[cfg(feature = "termion")]
|
||||
pub use self::termion::*;
|
||||
|
Loading…
Reference in New Issue
Block a user