pub fn new(app_context: &AppContext) -> TerminalViewAssistant {
        let parser = Processor::new();
        let cell_size = Size::new(12.0, 22.0);
        let term = Term::new(
            &Config::default(),
            SizeInfo {
                // set the initial size/width to be that of the cell size which prevents
                // the term from panicing if a byte is received before a resize event.
                width: cell_size.width,
                height: cell_size.height,
                cell_width: cell_size.width,
                cell_height: cell_size.height,
                padding_x: 0.0,
                padding_y: 0.0,
            },
        );

        TerminalViewAssistant {
            last_known_size: Size::zero(),
            parser,
            pty: None,
            term,
            terminal_scene: TerminalScene::default(),
            app_context: app_context.clone(),
        }
    }
/// Creates a new instance of the TerminalViewAssistant.
Creates a new instance of the TerminalViewAssistant.
Creates a new instance of the TerminalViewAssistant .
pub fn new(app_context: &AppContext) -> TerminalViewAssistant {
        let parser = Processor::new();
        let cell_size = Size::new(12.0, 22.0);
        let term = Term::new(
            &Config::default(),
            SizeInfo {
                // set the initial size/width to be that of the cell size which prevents
                // the term from panicing if a byte is received before a resize event.
                width: cell_size.width,
                height: cell_size.height,
                cell_width: cell_size.width,
                cell_height: cell_size.height,
                padding_x: 0.0,
                padding_y: 0.0,
            },
        );
        TerminalViewAssistant {
            last_known_size: Size::zero(),
            parser,
            pty: None,
            term,
            terminal_scene: TerminalScene::default(),
            app_context: app_context.clone(),
        }
    }
pub fn new ( app_context : & AppContext ) -> TerminalViewAssistant { let parser = Processor :: new ( ) ; let cell_size = Size :: new ( 12.0 , 22.0 ) ; let term = Term :: new ( & Config :: default ( ) , SizeInfo { // set the initial size/width to be that of the cell size which prevents // the term from panicing if a byte is received before a resize event. width : cell_size . width , height : cell_size . height , cell_width : cell_size . width , cell_height : cell_size . height , padding_x : 0.0 , padding_y : 0.0 , } , ) ; TerminalViewAssistant { last_known_size : Size :: zero ( ) , parser , pty : None , term , terminal_scene : TerminalScene :: default ( ) , app_context : app_context . clone ( ) , } }
Creates a new instance of the TerminalViewAssistant.
Creates a new instance of the TerminalViewAssistant .
app_context
&AppContext