pub fn from_ptty<'a>(&'a mut self, ptty: &fs::File) -> &'a mut Self {
        if let Some(mut config) = self.config.take() {
            let (cols, rows) =
                terminal_size(ptty.as_raw_fd()).expect("Error getting terminal size");
            config.screen.set_full_size(cols as usize, rows as usize);

            self.config = Some(config);
        }

        self
    }
/// Set screen configuration size from PTTY
Set screen configuration size from PTTY
Set screen configuration size from PTTY
pub fn from_ptty<'a>(&'a mut self, ptty: &fs::File) -> &'a mut Self {
        if let Some(mut config) = self.config.take() {
            let (cols, rows) =
                terminal_size(ptty.as_raw_fd()).expect("Error getting terminal size");
            config.screen.set_full_size(cols as usize, rows as usize);
            self.config = Some(config);
        }
        self
    }
pub fn from_ptty < ' a > ( & ' a mut self , ptty : & fs :: File ) -> & ' a mut Self { if let Some ( mut config ) = self . config . take ( ) { let ( cols , rows ) = terminal_size ( ptty . as_raw_fd ( ) ) . expect ( " " ) ; config . screen . set_full_size ( cols as usize , rows as usize ) ; self . config = Some ( config ) ; } self }
Set screen configuration size from PTTY
Set screen configuration size from PTTY
&'a mut self
ptty
&fs::File