Include jansi terminal.

main
sigonasr2, Sig, Sigo 3 years ago
parent 438f31b4d6
commit 88341cf413
  1. 3
      .vscode/settings.json
  2. 7
      pom.xml
  3. 7
      src/sig/SigTerm.java
  4. BIN
      target/SigTerm-0.jar
  5. BIN
      target/classes/sig/SigTerm.class

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}

@ -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…
Cancel
Save