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

Spralja/prompt update #60

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Spralja/prompt update #60

wants to merge 4 commits into from

Conversation

spralja
Copy link
Collaborator

@spralja spralja commented Mar 29, 2022

Added minor qol updates to the prompt

spralja added 2 commits March 29, 2022 16:08
Now prints `\nKeyboard Interrupted`
Just prints newline and exits (modeled after the behaviour of the Python interactive console)
@spralja spralja marked this pull request as ready for review March 29, 2022 14:16
exit()

except EOFError:
print()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we swallowing errors? Would be useful to know why the program exited for no reason

@spralja
Copy link
Collaborator Author

spralja commented Mar 30, 2022 via email

@miningape
Copy link
Owner

miningape commented Mar 30, 2022

EOFError is when you click CTRL-D.

Then it should say that no?

@spralja
Copy link
Collaborator Author

spralja commented Mar 30, 2022

EOFError is when you click CTRL-D.

Then it should say that no?

I don't as I said in the commit motivation, I modeled it after the behaviour of the python interactive console.

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 this pull request may close these issues.

2 participants