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

CTRL+D stops input in single line mode #204

Open
coezbek opened this issue Sep 27, 2024 · 1 comment
Open

CTRL+D stops input in single line mode #204

coezbek opened this issue Sep 27, 2024 · 1 comment

Comments

@coezbek
Copy link

coezbek commented Sep 27, 2024

I am curious to understand why pressing CTRL+D on a Prompt::ask would stop data entry, because in readline it would cause a delete of the next character.

The documentation seems to indicate that CTRL+D is only used in multiline mode, but the code does not distinguish and has no option to prevent TTY::Prompt to consume CTRL+D (and also CTRL+Z). I think by default CTRL+Z should be passed to the shell.

@coezbek
Copy link
Author

coezbek commented Sep 27, 2024

Okay, it seems that this is implemented but not yet released in tty-reader: piotrmurach/tty-reader@485ce80

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