Searched refs:terminal (Results 1 – 2 of 2) sorted by relevance
5 use crossterm::terminal::{self, EnterAlternateScreen, LeaveAlternateScreen};19 terminal: Terminal<B>, field26 pub fn new(terminal: Terminal<B>, events: EventHandler) -> Self { in new()27 Self { terminal, events } in new()34 terminal::enable_raw_mode()?; in init()45 self.terminal.hide_cursor()?; in init()46 self.terminal.clear()?; in init()55 self.terminal.draw(|frame| ui::render(app, frame))?; in draw()64 terminal::disable_raw_mode()?; in reset()74 self.terminal.show_cursor()?; in exit()
73 let terminal = Terminal::new(backend)?; in start_tui_app() localVariable75 let mut tui = Tui::new(terminal, events); in start_tui_app()