julia-repl icon indicating copy to clipboard operation
julia-repl copied to clipboard

Lots of empty lines in line mode

Open antoine-levitt opened this issue 6 years ago • 5 comments

Run julia-repl. Switch to line mode. Press enter repeatedly. Every time enter is pressed, an extra newline is created after the point, with the effect that after a while the screen is filled with newlines. I have a few customization but I don't think any of them is responsible for this. This doesn't happen under term, or in julia-repl in char mode. I'd be happy to PR if pointed to the correct place.

antoine-levitt avatar Dec 08 '19 15:12 antoine-levitt

Thanks for the bugreport. I can reproduce this.

It appears that

(setq-local term-scroll-show-maximum-output nil)

provides a workaround, and setting it to t in the code is then possibly causing this.

I don't recall the original reason for this setting, so I will experiment and see if it breaks anything else.

tpapp avatar Dec 08 '19 16:12 tpapp

That's only a partial fix: the empty lines are still there, the scrolling is just different

antoine-levitt avatar Dec 08 '19 17:12 antoine-levitt

I would suggest experimenting with the other similar settings in the code.

tpapp avatar Dec 09 '19 07:12 tpapp

I was able to reproduce this in a clean term-mode by (setq-local term-prompt-regexp "^(julia|shell|help\\?|(\\d+\\|debug ))>"). Adding "\n" randomly to that string does not seem to work.

antoine-levitt avatar Dec 09 '19 07:12 antoine-levitt

#84 will hopefully provide a workaround for all the quirks of ansi-term.

tpapp avatar Mar 11 '20 10:03 tpapp