pub fn run(&mut self) {

        // Start the event listener
        loop {
            match read().unwrap() {
                Event::Key(
                    KeyEvent { code: KeyCode::Char('c'), modifiers: KeyModifiers::CONTROL }
                ) => {
                    self.quit();
                    return;
                },
                Event::Key(_) => {},
                Event::Mouse(_) => {}
                Event::Resize(width, height) => {
                    self.screen_height = height;
                    self.screen_width = width;
                    self.draw_children();
                }
            }
        }
    }
/// Run the application; this starts the event listener.
/// 
/// More information on connection to events will appear here when implemented.
Run the application; this starts the event listener.
More information on connection to events will appear here when implemented.
Run the application ; this starts the event listener . More information on connection to events will appear here when implemented .
pub fn run(&mut self) {
        // Start the event listener
        loop {
            match read().unwrap() {
                Event::Key(
                    KeyEvent { code: KeyCode::Char('c'), modifiers: KeyModifiers::CONTROL }
                ) => {
                    self.quit();
                    return;
                },
                Event::Key(_) => {},
                Event::Mouse(_) => {}
                Event::Resize(width, height) => {
                    self.screen_height = height;
                    self.screen_width = width;
                    self.draw_children();
                }
            }
        }
    }
pub fn run ( & mut self ) { // Start the event listener loop { match read ( ) . unwrap ( ) { Event :: Key ( KeyEvent { code : KeyCode :: Char ( 'c' ) , modifiers : KeyModifiers :: CONTROL } ) => { self . quit ( ) ; return ; } , Event :: Key ( _ ) => { } , Event :: Mouse ( _ ) => { } Event :: Resize ( width , height ) => { self . screen_height = height ; self . screen_width = width ; self . draw_children ( ) ; } } } }
Run the application; this starts the event listener.
Run the application ; this starts the event listener .
&mut self
&mut self