-
-
Notifications
You must be signed in to change notification settings - Fork 159
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-C causes Interrupted system call #2108
Comments
Thanks for the report! I have noticed this on OS X too -- Not sure why it's different than Linux |
Suspicions for this bug
I will look into this |
OK yes I can repro this on Linux when GNU readline isn't present
Hmmm |
Also I wonder if we should get rid of the |
Because mylib::Stdin()->readline() needs to raise KeyboardInterrupt! Signal handling is inherently part of the mycpp runtime. Related to issue #2108.
This is issue #2108. CFile::readline() now throws KeyboardInterrupt, like other read() functions. There is still an issue with ^C, probably because of some terminal settings.
I just fixed this - thanks for the report! There needs to be some more polishing in the non-GNU-readline case |
- in the GNU readline case, it avoids a drawing bug - in the non-GNU readline case, it avoids ^C being printed twice - the terminal driver prints it too, I think This isn't ideal -- the 2 cases should be made consistent -- but it's better than what we had. This is fallout from issue #2108.
Version: 0.23.0
OS: FreeBSD 14.1
The text was updated successfully, but these errors were encountered: