jline dependency fix.
This commit is contained in:
parent
513848d42b
commit
3bffc4a0f7
17
pom.xml
17
pom.xml
@ -17,12 +17,13 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- https://mvnrepository.com/artifact/jline/jline -->
|
<!-- https://mvnrepository.com/artifact/org.jline/jline -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>jline</groupId>
|
<groupId>org.jline</groupId>
|
||||||
<artifactId>jline</artifactId>
|
<artifactId>jline</artifactId>
|
||||||
<version>3.0.0.M1</version>
|
<version>3.9.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@ -30,6 +31,11 @@
|
|||||||
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-plugin-plugin</artifactId>
|
||||||
|
<version>3.3</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
<version>3.1.0</version>
|
<version>3.1.0</version>
|
||||||
@ -70,6 +76,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<version>3.3.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package sig;
|
package sig;
|
||||||
|
|
||||||
import java.util.Scanner;
|
import java.io.IOException;
|
||||||
import java.util.regex.Pattern;
|
|
||||||
import org.jline.terminal.TerminalBuilder;
|
|
||||||
|
|
||||||
public class SigTerm{
|
public class SigTerm{
|
||||||
static Thread t;
|
static Thread t;
|
||||||
@ -119,7 +117,8 @@ public class SigTerm{
|
|||||||
public static void Text(String text) {
|
public static void Text(String text) {
|
||||||
System.out.print(text);
|
System.out.print(text);
|
||||||
}
|
}
|
||||||
public static void main(String[] args) {
|
|
||||||
|
static void RunTest() {
|
||||||
EraseDisplay(2);
|
EraseDisplay(2);
|
||||||
CursorUp(3);
|
CursorUp(3);
|
||||||
Text("Test");
|
Text("Test");
|
||||||
@ -151,10 +150,18 @@ public class SigTerm{
|
|||||||
Text("A little purple!");
|
Text("A little purple!");
|
||||||
CursorLineDown(2);
|
CursorLineDown(2);
|
||||||
CursorSetPosition(999999,1);
|
CursorSetPosition(999999,1);
|
||||||
System.out.println(org.jline.terminal.TerminalBuilder.terminal().getWidth());
|
|
||||||
GetCursorPosition();
|
GetCursorPosition();
|
||||||
TextColor(0,255,0);
|
TextColor(0,255,0);
|
||||||
CursorSetPosition(1,8);
|
CursorSetPosition(1,8);
|
||||||
System.out.println(RESET);
|
System.out.println(RESET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
try {
|
||||||
|
System.out.println(org.jline.terminal.TerminalBuilder.terminal().getWidth());
|
||||||
|
System.out.println("Done!");
|
||||||
|
} catch (IOException e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user