-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Multiline editing breaks if input has more lines than terminal #311
Comments
I've been looking into how to fix this but I'm stuck on the question of how it should work. It looks like
One thought is that we could change the code to activate anytime the number of lines to display is too large for the terminal. |
My motivation to fix this is to upgrade the Presto CLI to use JLine 3. People often paste large SQL queries that have hundreds or thousands of lines. Multiline editing is an awesome feature, but we can't regress on this common scenario that JLine 2 handles without problems. |
@gnodet Do you have any thoughts on how this should work? |
The display needs to be fixed so that if the number of lines is greater than the height of the terminal, some continuation markers have to be displayed at the top and/or bottom and trim the number of lines. This has to be done in the LineReaderImpl because it will certainly need special treatment for up/down cursor movement. |
No description provided.
The text was updated successfully, but these errors were encountered: