Does anybody know a way to get rid of the blank line in the REPL which appears everytime before an input prompt (except for example when using print(sth))?
I like to use julia as a quick calculator-tool from the terminal for a few operations. But I don’t like wasted space, because then I can see less.
I came across the solution by accident. The culprit here is REPLDisplay.
There are two methods to get rid of it in favor of a simpler TextDisplay:
Method 1: Pop the REPLDisplay off
Base.Multimedia.popdisplay();
Method 2: Add a new TextDisplay
Base.Multimedia.pushdisplay(TextDisplay(stdout));
After using one the two methods above, the output will look like this:
julia> 5+5
10
julia> 3+3
6
julia>
Unfortunately, I have not yet figured out how to incorporate that into the startup. It seems REPLDisplay is added after the startup script is executed.