Modified with_crossterm naming scheme

This commit is contained in:
Jonathan 2019-02-04 09:46:10 +00:00 committed by Florian Dehau
parent dc654e9f6c
commit cd41ca571f

View File

@ -23,8 +23,8 @@ impl CrosstermBackend {
CrosstermBackend::default()
}
pub fn with_crossterm(scr: crossterm::Screen) -> CrosstermBackend {
CrosstermBackend { screen: scr }
pub fn with_screen(screen: crossterm::Screen) -> CrosstermBackend {
CrosstermBackend { screen: screen }
}
pub fn screen(&self) -> &crossterm::Screen {