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

Lots of empty lines in line mode #79

Open
antoine-levitt opened this issue Dec 8, 2019 · 5 comments
Open

Lots of empty lines in line mode #79

antoine-levitt opened this issue Dec 8, 2019 · 5 comments

Comments

@antoine-levitt
Copy link
Contributor

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
Copy link
Owner

tpapp commented Dec 8, 2019

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
Copy link
Contributor Author

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

@tpapp
Copy link
Owner

tpapp commented Dec 9, 2019

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

@antoine-levitt
Copy link
Contributor Author

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
Copy link
Owner

tpapp commented Mar 11, 2020

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

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

No branches or pull requests

2 participants