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>
|
<artifactId>jline</artifactId>
|
||||||
<version>3.9.0</version>
|
<version>3.9.0</version>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package sig;
|
package sig;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.Reader;
|
|
||||||
|
|
||||||
import org.jline.terminal.Terminal;
|
import org.jline.terminal.Terminal;
|
||||||
import org.jline.utils.NonBlockingReader;
|
import org.jline.utils.NonBlockingReader;
|
||||||
@ -191,7 +190,7 @@ public class SigTerm{
|
|||||||
CursorLineDown(1);
|
CursorLineDown(1);
|
||||||
Text(DOUBLEUNDERLINE+"And this will not be bold"+RESET);
|
Text(DOUBLEUNDERLINE+"And this will not be bold"+RESET);
|
||||||
CursorLineDown(1);
|
CursorLineDown(1);
|
||||||
Text(BOLD+BRIGHT_CYAN+BRIGHT_BLACK_BACKGROUND+"A little cyan!");
|
Text(BRIGHT_CYAN+BRIGHT_BLACK_BACKGROUND+"A little cyan!");
|
||||||
CursorLineDown(2);
|
CursorLineDown(2);
|
||||||
CursorSetPosition(999999,1);
|
CursorSetPosition(999999,1);
|
||||||
CursorSetPosition(1,8);
|
CursorSetPosition(1,8);
|
||||||
@ -257,8 +256,8 @@ public class SigTerm{
|
|||||||
NonBlockingReader r = term.reader();
|
NonBlockingReader r = term.reader();
|
||||||
System.out.println(term.getWidth()+"x"+term.getHeight()+" size detected.");
|
System.out.println(term.getWidth()+"x"+term.getHeight()+" size detected.");
|
||||||
System.out.println("Done!");
|
System.out.println("Done!");
|
||||||
RunTest();
|
//RunTest();
|
||||||
//Run(r);
|
Run(r);
|
||||||
r.shutdown();
|
r.shutdown();
|
||||||
term.close();
|
term.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user