Home
last modified time | relevance | path

Searched refs:terminal (Results 1 – 2 of 2) sorted by relevance

/DragonOS/tools/debugging/logmonitor/src/
H A Dtui.rs5 use crossterm::terminal::{self, EnterAlternateScreen, LeaveAlternateScreen};
19 terminal: Terminal<B>, field
26 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()
H A Dmain.rs73 let terminal = Terminal::new(backend)?; in start_tui_app() localVariable
75 let mut tui = Tui::new(terminal, events); in start_tui_app()