PyBites-Open-Source / eatlocal

This package helps users solve PyBites code challenges on their local machine.
MIT License
20 stars 9 forks source link

Use 'q', 'Q', or 'esc' to exit display bite fixed with commit 188a0a7 #13

Closed rhelmstedter closed 2 years ago

rhelmstedter commented 2 years ago

Currently, the display bite command displays the instructions and the code for the bite in a rich layout object. It is displayed with with Live(layout, screen=True):. Then it asks for input(). This means you can close it with either press enter or <Ctrl-C>. It would be nice to be able to close the display with any of 'q', 'Q', or 'esc'.

rhelmstedter commented 2 years ago

This has been fixed with the most recent commit. @JnyJny you were the one who requested this. Let me know if you have any issues.

JnyJny commented 2 years ago

Usually you put the commit in a comment, 188a0a7, and then GitHub will automatically hot-link it for us.

Also, LGTM, thank you!