tari-project/tari

Fix cross term win compatibility upgrade to 0.27

Opened this issue · 0 comments

Maybe check this as well:

    fn is_interrupted(&self, event: Option<Result<Event, io::Error>>) -> bool {
        if let Some(Ok(Event::Key(key))) = event {
            match key {
                KeyEvent {
                    code: KeyCode::Char('c'),
                    modifiers: KeyModifiers::CONTROL,
                    kind: _,
                    state: _,
                } => {
                    return true;
                },
                _ => {
                    if self.non_interactive {
                        println!("Press Ctrl-C to interrupt the node.");
                    } else {
                        println!("Press Ctrl-C to enter the interactive shell.");
                    }
                },
            }
        }
        false
    }