|
|
@ -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) { |
|
|
|