wip
This commit is contained in:
19
examples/gradle-consumer/src/main/java/example/Main.java
Normal file
19
examples/gradle-consumer/src/main/java/example/Main.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package example;
|
||||
|
||||
import dev.jlibghostty.Ghostty;
|
||||
import dev.jlibghostty.Terminal;
|
||||
import dev.jlibghostty.TerminalOptions;
|
||||
|
||||
public final class Main {
|
||||
private Main() {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("paste safe: " + Ghostty.pasteIsSafe("hello"));
|
||||
|
||||
try (Terminal terminal = Ghostty.open(TerminalOptions.of(80, 24))) {
|
||||
terminal.write("hello from libghostty-vt\r\n");
|
||||
System.out.println(terminal.snapshot());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user