/// Create a new event processor
///
/// Takes a writer which is expected to be hooked up to the write end of a
/// pty.
Create a new event processor
Takes a writer which is expected to be hooked up to the write end of a
pty.
Create a new event processor Takes a writer which is expected to be hooked up to the write end of a pty .
pub fn new(
        notifier: N,
        resize_tx: mpsc::Sender<(u32, u32)>,
        options: &Options,
        config: &Config,
        ref_test: bool,
        size_info: SizeInfo,
    ) -> Processor<N> {
        Processor {
            key_bindings: config.key_bindings().to_vec(),
            mouse_bindings: config.mouse_bindings().to_vec(),
            mouse_config: config.mouse().to_owned(),
            print_events: options.print_events,
            wait_for_event: true,
            notifier,
            resize_tx,
            ref_test,
            mouse: Default::default(),
            selection: None,
            size_info,
            hide_cursor_when_typing: config.hide_cursor_when_typing(),
            hide_cursor: false,
            received_count: 0,
            suppress_chars: false,
            last_modifiers: Default::default(),
            pending_events: Vec::with_capacity(4),
        }
    }
pub fn new ( notifier : N , resize_tx : mpsc :: Sender < ( u32 , u32 ) > , options : & Options , config : & Config , ref_test : bool , size_info : SizeInfo , ) -> Processor < N > { Processor { key_bindings : config . key_bindings ( ) . to_vec ( ) , mouse_bindings : config . mouse_bindings ( ) . to_vec ( ) , mouse_config : config . mouse ( ) . to_owned ( ) , print_events : options . print_events , wait_for_event : true , notifier , resize_tx , ref_test , mouse : Default :: default ( ) , selection : None , size_info , hide_cursor_when_typing : config . hide_cursor_when_typing ( ) , hide_cursor : false , received_count : 0 , suppress_chars : false , last_modifiers : Default :: default ( ) , pending_events : Vec :: with_capacity ( 4 ) , } }
Create a new event processor
Takes a writer which is expected to be hooked up to the write end of a
pty.
Create a new event processor Takes a writer which is expected to be hooked up to the write end of a pty .
notifier
N
resize_tx
mpsc::Sender<(u32, u32)>
options
&Options
config
&Config
ref_test
bool
size_info
SizeInfo