-
Notifications
You must be signed in to change notification settings - Fork 0
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 and CTRL+D kill tbp #3
Comments
I did some thinking and playing with the Python REPL to come up with how I think Reminder:
Right now my The handling will be based on the state of the
|
The Plan
|
Full implementation of the CTRL+C and CTRL+D processing as outlined in issue #3. A few other small fixes to tests and better output.
- Added the `%exit` command language command to exit the tbp debugger. Closes #1. - Now tbp behaves like a normal command line application when the user hits `CTRL+C` and `CTRL+D`. Closes #3. - Fixed the copyright on top of all Python files. For some reason I thought it was 2004. Closes #43. - Added the combined coverage report summary to the CI.yml output. That makes it easier to see what didn't have coverage. Closes #44. - Added the `tiny_basic_grammar.ebnf` and `grammar_tests.txt` that I forgot to bring over from the dead repository. Closes #45. - Added better error reporting on `INPUT` entry errors and escaped syntax error strings, so characters like `\n` are displayed correctly. Closes #46. - Did a pass to eliminate any dead code. Closes #47. - Did a final editing pass on all documentation.
Right now I'm not handling CTRL+C or CTRL+D at the tbp prompt (
tbp:>
) or the debug prompt (DEBUG[111]:>
). Should I be? What is the best practice for this kind of approach?In the Python REPL, CTRL+C is reported as a
KeyboardInterrupt
but does not kill the process, were CTRL+D does.I should note that I'm already handling CTRL+C and CTRL+D in the
INPUT
statement.What's the overall plan for these keystrokes? Should
INPUT
be different like it is now?The text was updated successfully, but these errors were encountered: