File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/java/textFormatter Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -370,10 +370,14 @@ else if (TextFormatter.startWithDefaultColorIfNotDefined && this.parent == null)
370
370
* If {@link #debug} is set to {@code true}, then the text "ESC" will be used instead of the actual escape
371
371
* character.
372
372
* </p>
373
+ * If {@link #enableSequences} is set to {@code false}, then an empty string will be returned.
373
374
* @param values The values to add to the terminal sequence.
374
375
* @return a string with a terminal sequence with the specified values
375
376
*/
376
377
public static @ NotNull String getSequence (@ NotNull Object ... values ) {
378
+ if (!TextFormatter .enableSequences )
379
+ return "" ;
380
+
377
381
var joined = String .join (
378
382
";" ,
379
383
Arrays .stream (values )
You can’t perform that action at this time.
0 commit comments