You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just want to disable the feature, but regarding backward compatibility, let me suggest three options:
Just stop printing blank lines. The simplest solution, but this can break backward compatibility.
Add configurable option to defaults.txt or preferences.txt like console.blanklines with default value 10 which controls the number of blank lines. A user can set it to 0 to disable the printing. Also, it would not affect existing projects unless they depend on defaults.txt itself.
Do nothing. Maximal backward compatibility.
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 in processing.app.ui.Editor.
publicvoidprepareRun() {
internalCloseRunner();
statusEmpty();
// do this to advance/clear the terminal window / dos prompt / etcfor (inti = 0; i < 10; i++) System.out.println();
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:
I have no idea why this clearance is needed in "the terminal windows / dos prompt / etc", at least in the current environment around Processing.
According to git log, these lines were introduced in 2011, but I don't know about the situation in that time since I am pretty new here.
Anyway, even if it needs to clear the terminal, spamming with blank lines doesn't seems to be a right way.
When it is executed as a background process with & in the launch command, it should never output anything to stdout.
As for console.auto_clear, I understand it erases the outputs in the previous Run.
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: