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

Using the arrow keys in the REPL should cycle through recently used commands #297

Open
malte-v opened this issue Apr 18, 2020 · 2 comments

Comments

@malte-v
Copy link

malte-v commented Apr 18, 2020

Currently using the arrow keys just prints ANSI sequences, which is different from the Idris 1 REPL.

Steps to Reproduce

Enter the Idris 2 REPL and use the arrow keys.

Expected Behavior

It cycles through the recently used commands.

Observed Behavior

Escape sequences get printed.

@gallais
Copy link
Collaborator

gallais commented Apr 18, 2020

Note that you can use rlwrap to cope with the current limitations

@edwinb
Copy link
Owner

edwinb commented Apr 21, 2020

Yes, I run through rlwrap (in fact I've aliased idris2). This is a fairly big feature request, in practice, requiring readline support or similar, and then leads to wanting tab completion of function names. I actually wonder if a better way is to write a separate fancy REPL via the IDE protocol, and to keep what Idris 2 itself does as simple as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants