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

Scroll forward of the cli cause tailtips to collide with text #738

Closed
arphiox opened this issue Nov 8, 2021 · 1 comment
Closed

Scroll forward of the cli cause tailtips to collide with text #738

arphiox opened this issue Nov 8, 2021 · 1 comment
Labels
Milestone

Comments

@arphiox
Copy link

arphiox commented Nov 8, 2021

remkop/picocli#1456 (comment)
Hello, I've opened this issue for a problem I'm having with the cli, can you check it out and help me finding a solution.
Thanks.

@mattirn
Copy link
Collaborator

mattirn commented Nov 9, 2021

AFAIK the problem happens only in Windows CMD. I do not know if the problem can have any viable fix in JLine.

As a work around you can create a widget that reset the status bar and command line like
(see details in widgets-and-key-mapping):

...\jline3-master>cd demo
...\jline3-master\demo>jline-repl.bat jansi
...
groovy-repl> def reset(){
add: }     >   def status = org.jline.utils.Status.getStatus(_reader.getTerminal(), false)
add: }     >   if (status != null) {
add: }}    >     status.hardReset();
add: }}    >   }
add: }     >   _reader.redrawLine()
add: }     > }
groovy-repl> widget -N _reset reset
groovy-repl> keymap '^[r' _reset
groovy-repl>

Enable tailtip widgets press <alt>-<s>, type command line "new String('" while scrolling window:

jline1

Press <alt>-<r> to reset status and command line:

jline2

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

No branches or pull requests

3 participants