Question

I've encountered the following problem with jLine. We open the command prompt (both linux and windows) and enter a stream of letters until it "spills" over to the next line. for example:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

We then try to delete the entered text, however the cursor will not go back up to the first line and it will remain on the start of the second line. This is a visual issue and not a logic one, since by printing out debug message and by pressing "enter" i can see that the buffer contains the string after all the deletions.

If anyone can help me figure out why this happens and how this can be resolved, it would be greatly appreciated.

Thanks, Jonathan

Was it helpful?

Solution

I've dug a bit more into the jLine SourceForge site and I found the when using jLine v2.7 the problem doesn't occur. However take into account that the API has change significantly so your implementation will have to be changed

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top