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

Pressing down arrow behavior #78

Open
vivrekar opened this issue Oct 23, 2018 · 0 comments
Open

Pressing down arrow behavior #78

vivrekar opened this issue Oct 23, 2018 · 0 comments

Comments

@vivrekar
Copy link

When typing something into the interpreter and you press the down arrow before pressing Enter, the interpreter displays an empty line. Pressing the up arrow displays the previous line, and the "in-progress" line being typed is lost.
Similarly, when you are typing something into the interpreter and press the up arrow before pressing Enter, the interpreter displays the previous line. Pressing the down arrow displays a blank line, and the "in-progress" line being typed is lost.
A possible behavior that is more intuitive is to save the in-progress line being typed when the up or down arrow is clicked. Here are a few scenarios, where the user has typed some input and hasn't pressed Enter yet:

  1. User presses up arrow. Previous line input is displayed. User presses down arrow. The "in-progress" line is displayed, instead of an empty line like right now.
  2. User presses down arrow. The displayed line does not change, unlike the current behavior which is to show an empty line.
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

No branches or pull requests

1 participant