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

Leaving application causes console arrows / tabs to work incorrectly #819

Closed
frossm opened this issue Jan 23, 2023 · 2 comments
Closed

Leaving application causes console arrows / tabs to work incorrectly #819

frossm opened this issue Jan 23, 2023 · 2 comments
Milestone

Comments

@frossm
Copy link

frossm commented Jan 23, 2023

Hello. I have a java console application that has been using jline-reader v3.21.0 without issue.

Upon upgrading to v3.22.0, when I leave my java application, the arrow keys in my terminal no longer function.

Pressing up arrow, for example, gives me [A instead of showing the last command. Tab will now insert tabs instead of completion.

I downgraded to v3.21.0 and everything is working again, but I wanted to report this. For reference, the application is RPNCalc and I'm happy to try anything in my app to help troubleshoot.

For reference, I'm running Windows 11.

Please let me know how I can help.

Thank you

Michael

@frossm frossm changed the title Leaving application causes console arrows to work incorrectly Leaving application causes console arrows / tabs to work incorrectly Jan 23, 2023
@frossm
Copy link
Author

frossm commented Jan 24, 2023

In doing a quick test, I don't see this issue in bash on Ubuntu, but I probably need to look at it more closely.

@mattirn
Copy link
Collaborator

mattirn commented Feb 20, 2023

Tested on Windows CMD and PowerShell. I have been able to reproduce the fault only on Windows CMD when using with Jansi:

...\demo>jline-repl.bat jansi

As a work around you can fix your terminal settings after you exit from your app by entering command reset.

gnodet added a commit to gnodet/jline3 that referenced this issue Mar 3, 2023
@gnodet gnodet added this to the 3.23.0 milestone Mar 3, 2023
@gnodet gnodet closed this as completed in caa2d14 Mar 6, 2023
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