tpapp / julia-repl

Run an inferior Julia REPL in a terminal inside Emacs
Other
170 stars 35 forks source link

Lots of empty lines in line mode #79

Open antoine-levitt opened 4 years ago

antoine-levitt commented 4 years ago

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.

tpapp commented 4 years ago

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.

antoine-levitt commented 4 years ago

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

tpapp commented 4 years ago

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

antoine-levitt commented 4 years ago

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.

tpapp commented 4 years ago

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