Include jansi terminal.
This commit is contained in:
parent
438f31b4d6
commit
88341cf413
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"java.configuration.updateBuildConfiguration": "automatic"
|
||||
}
|
7
pom.xml
7
pom.xml
@ -23,7 +23,12 @@
|
||||
<artifactId>jline</artifactId>
|
||||
<version>3.9.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/org.jline/jline-terminal-jansi -->
|
||||
<dependency>
|
||||
<groupId>org.jline</groupId>
|
||||
<artifactId>jline-terminal-jansi</artifactId>
|
||||
<version>3.21.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -1,7 +1,6 @@
|
||||
package sig;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
|
||||
import org.jline.terminal.Terminal;
|
||||
import org.jline.utils.NonBlockingReader;
|
||||
@ -191,7 +190,7 @@ public class SigTerm{
|
||||
CursorLineDown(1);
|
||||
Text(DOUBLEUNDERLINE+"And this will not be bold"+RESET);
|
||||
CursorLineDown(1);
|
||||
Text(BOLD+BRIGHT_CYAN+BRIGHT_BLACK_BACKGROUND+"A little cyan!");
|
||||
Text(BRIGHT_CYAN+BRIGHT_BLACK_BACKGROUND+"A little cyan!");
|
||||
CursorLineDown(2);
|
||||
CursorSetPosition(999999,1);
|
||||
CursorSetPosition(1,8);
|
||||
@ -257,8 +256,8 @@ public class SigTerm{
|
||||
NonBlockingReader r = term.reader();
|
||||
System.out.println(term.getWidth()+"x"+term.getHeight()+" size detected.");
|
||||
System.out.println("Done!");
|
||||
RunTest();
|
||||
//Run(r);
|
||||
//RunTest();
|
||||
Run(r);
|
||||
r.shutdown();
|
||||
term.close();
|
||||
} catch (IOException e) {
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user