-
-
Notifications
You must be signed in to change notification settings - Fork 72
Disable/control blank lines in the beginning of the console #911
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
Comments
Any idea why the terminal window needs to be cleared a bit in the first place? |
I'm also happy if it gets moved down a little bit: processing4/app/src/processing/app/ui/Editor.java Lines 2297 to 2302 in 5e1161c
|
I have no idea why this clearance is needed in "the terminal windows / dos prompt / etc", at least in the current environment around Processing. As for |
Okay, feel free to open a PR. Either limiting the 10 lines to Windows or into the Preferences block |
Thanks, I start working on this. |
Most relevant area for this enhancement?
Accessibility
Feature to enhance
Processing prints 10 blank lines when it runs PDE
Desired enhancement
In Linux, Processing IDE is launched by
java
command with&
in the tail, so the blank lines just mess up the terminal; e.g.I just want to disable the feature, but regarding backward compatibility, let me suggest three options:
defaults.txt
orpreferences.txt
likeconsole.blanklines
with default value10
which controls the number of blank lines. A user can set it to0
to disable the printing. Also, it would not affect existing projects unless they depend ondefaults.txt
itself.Potential benefits
The enhancement may also benefit GUI users since the blank lines are also printed to IDE's "console" area.

For those users, the blank lines make little sense.
Possible drawbacks
According to the comment in the source code, the blank lines are for Windows console (see below).
However, the line was added in Processing 2 era, so things may have changed.
Backward compatibility can also be a problem.
Additional context
The blank lines come from
Editor.prepareRun()
method in the line 2297 inprocessing.app.ui.Editor
.Would you like to work on the issue?
Once the direction becomes clear, I think I can do it by myself.
The text was updated successfully, but these errors were encountered: