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

Closed
SWvheerden opened this issue Mar 13, 2024 · 1 comment · Fixed by #6783
Closed

Fix cross term win compatibility upgrade to 0.27 #6211

SWvheerden opened this issue Mar 13, 2024 · 1 comment · Fixed by #6783
Assignees

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
    }
@hansieodendaal
Copy link
Contributor

See #6783

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

Successfully merging a pull request may close this issue.

2 participants