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

Use arrow keys to navigate input in ACL2 shell #1585

Closed
ckinateder opened this issue Mar 3, 2024 · 3 comments
Closed

Use arrow keys to navigate input in ACL2 shell #1585

ckinateder opened this issue Mar 3, 2024 · 3 comments

Comments

@ckinateder
Copy link

I would like to see a feature where arrow keys could be used inside the shell to manipulate input/recall previous commands, instead of getting the control sequences:

ACL2 !>^[[A^[[B^[[C^[[D

It would be helpful to navigate around commands, i.e., to fix a typo without having to retype the whole line.

@kini
Copy link
Member

kini commented Mar 3, 2024

I usually use the tool rlwrap (https://github.com/hanslub42/rlwrap) to accomplish what you're suggesting, FWIW.

@MattKaufmann
Copy link
Contributor

Many (probably almost all) ACL2 users either run a shell inside Emacs, which has such capabilities, or use the ACL2 Sedan, ACL2s (see https://www.cs.utexas.edu/users/moore/acl2/manuals/latest/?topic=ACL2____ACL2-SEDAN). I'm closing this issue since ACL2 won't be changing to provide direct support for editing, other than for some useful Emacs utilities available in directory books/emacs/ of the distribution, in particular, file books/emacs/emacs-acl2.el.

@ckinateder
Copy link
Author

I usually use the tool rlwrap (https://github.com/hanslub42/rlwrap) to accomplish what you're suggesting, FWIW.

This worked perfectly, thanks.

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

3 participants