File tree 2 files changed +13
-3
lines changed
app/src/processing/app/ui
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2293,8 +2293,10 @@ public void prepareRun() {
2293
2293
internalCloseRunner ();
2294
2294
statusEmpty ();
2295
2295
2296
- // do this to advance/clear the terminal window / dos prompt / etc
2297
- for (int i = 0 ; i < 10 ; i ++) System .out .println ();
2296
+ // Do this to advance/clear the terminal window / dos prompt / etc.
2297
+ // This may be useful especially when 'console.auto_clear' is false.
2298
+ int headPadding = Preferences .getInteger ("console.head_padding" );
2299
+ for (int i = 0 ; i < headPadding ; i ++) console .message ("\n " , false );
2298
2300
2299
2301
// clear the console on each run, unless the user doesn't want to
2300
2302
if (Preferences .getBoolean ("console.auto_clear" )) {
Original file line number Diff line number Diff line change @@ -165,8 +165,16 @@ console.font.size = 12
165
165
# number of lines to show by default
166
166
console.lines = 4
167
167
168
- # set to false to disable automatically clearing the console
168
+ # Number of blank lines to advance/clear console.
169
+ # Note that those lines are also printed in the terminal when
170
+ # Processing is executed there.
171
+ # Setting to 0 stops this behavior.
172
+ console.head_padding = 10
173
+
174
+ # Set to false to disable automatically clearing the console
169
175
# each time 'run' is hit
176
+ # If one sets it to false, one may also want to set 'console.head_padding'
177
+ # to a positive number to separate outputs from different runs.
170
178
console.auto_clear = true
171
179
172
180
# number of days of history to keep around before cleaning
You can’t perform that action at this time.
0 commit comments