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

Add ctrl + left/right arrow support to the REPL #1471

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

Darazaki
Copy link
Contributor

@Darazaki Darazaki commented Jul 3, 2024

Hi! Made a small patch for a recurring annoyance I had with the REPL. Only tested on Linux w/ WezTerm & Konsole but should work on any modern terminal

Thank you for making/maintaining such a nice programming language :)


Commit Description:

Ctrl + left/right arrow would simply input "5D"/"5C" into the REPL which was useless and confusing

With this change, it instead goes to the previous/next word which is usually expected in readline-like interfaces

Ctrl + left/right arrow would simply input "5D"/"5C" into the REPL
which was useless and confusing

With this change, it instead goes to the previous/next word which is
usually expected in readline-like interfaces
@sogaiu
Copy link
Contributor

sogaiu commented Jul 3, 2024

Tried it out in Void Linux.

Works nicely :)

@bakpakin bakpakin merged commit 190056b into janet-lang:master Jul 3, 2024
8 checks passed
@Darazaki Darazaki deleted the repl-ctrl-arrow branch July 3, 2024 22:09
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.

3 participants