Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cross term win compatibility upgrade to 0.27 #6211

Open
SWvheerden opened this issue Mar 13, 2024 · 0 comments
Open

Fix cross term win compatibility upgrade to 0.27 #6211

SWvheerden opened this issue Mar 13, 2024 · 0 comments

Comments

@SWvheerden
Copy link
Collaborator

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
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant