Skip to content

Commit 615696a

Browse files
committed
remove TextFormatter#ESC to now use UtlString#ESCAPE_CHAR
1 parent e86dc5e commit 615696a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ plugins {
44
}
55

66
group = "com.darvil"
7-
version = "2.2.0"
7+
version = "2.2.0b"
88
description = "Text formatting utilities to easily format text on the terminal for Java."
99

1010
dependencies {
11-
implementation("com.darvil:utils:0.6.1")
11+
implementation("com.darvil:utils:0.6.1b")
1212

1313
implementation("org.jetbrains:annotations:24.0.0")
1414
testImplementation(platform("org.junit:junit-bom:5.9.1"))
@@ -24,6 +24,7 @@ java {
2424

2525
repositories {
2626
mavenCentral()
27+
mavenLocal()
2728
maven("https://repsy.io/mvn/darvil/java")
2829
}
2930

src/main/java/textFormatter/TextFormatter.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.jetbrains.annotations.Nullable;
55
import textFormatter.color.Color;
66
import textFormatter.color.SimpleColor;
7+
import utils.UtlString;
78

89
import java.util.ArrayList;
910
import java.util.Arrays;
@@ -390,7 +391,7 @@ else if (TextFormatter.startWithDefaultColorIfNotDefined && this.parent == null)
390391

391392
if (TextFormatter.debug)
392393
return "ESC[" + joined + "]";
393-
return "" + ESC + '[' + joined + 'm';
394+
return "" + UtlString.ESCAPE_CHAR + '[' + joined + 'm';
394395
}
395396

396397
/**
@@ -402,9 +403,4 @@ else if (TextFormatter.startWithDefaultColorIfNotDefined && this.parent == null)
402403
public static boolean isColorDisabledEnv() {
403404
return System.getenv("NO_COLOR") != null;
404405
}
405-
406-
/**
407-
* Escape character which represents the start of a terminal sequence
408-
*/
409-
public static final char ESC = '\u001B';
410406
}

0 commit comments

Comments
 (0)