import org.fusesource.jansi.Ansi; import org.fusesource.jansi.AnsiConsole; import java.util.Scanner; class Program01 { public static void main(String args[]) { Scanner in = new Scanner(System.in); AnsiConsole.systemInstall(); Ansi ansi = new Ansi(); AnsiConsole.out().print(new Ansi().eraseScreen()); ansi.reset(); AnsiConsole.out().print(ansi); do { ansi.cursor(0, 40); AnsiConsole.out().print(ansi); AnsiConsole.out.print("Teszto"); ansi.cursor(5, 0); AnsiConsole.out().print(ansi); AnsiConsole.out.print("> "); ansi.cursor(5, 3); ansi.eraseLine(); AnsiConsole.out().print(ansi); String cmd = in.nextLine(); if(cmd.equals("vege")) break; }while(true); } }