-
Notifications
You must be signed in to change notification settings - Fork 220
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
JLine3 "steals" input from other program #138
Comments
Yes, you're supposed to use the |
The reason is that signals have to be processed as soon as possible, so that the input stream is read in advanced. |
Thank you for your comment, actually the program is a C library, I think I can shutdown/run the reader before/after calling the relative C interface. |
Maybe the terminal reader can be temoparily paused during the enter key is pressed and before new line request is raised |
Yeah, we could add a two methods to the terminal to pause/resume the input stream processing. |
That would be nice, thanks, previously I tested |
It is possible that an application integrates Jline3 together with other program which uses its own read user input method. In such case, I found that Jline3 always "steals" the first character for each input line.
With below test code(in native console window), try input following lines:
And then the result likes below, the first char is eaten:
Test code:
The text was updated successfully, but these errors were encountered: