Skip to content

Spralja/prompt update#60

Open
spralja wants to merge 4 commits intomainfrom
spralja/prompt-update
Open

Spralja/prompt update#60
spralja wants to merge 4 commits intomainfrom
spralja/prompt-update

Conversation

@spralja
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

spralja commented Mar 30, 2022 via email

@miningape
Copy link
Copy Markdown
Owner

miningape commented Mar 30, 2022

EOFError is when you click CTRL-D.

Then it should say that no?

@spralja
Copy link
Copy Markdown
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