Hello all,
(difficult question)
I was wondering if somebody knows to get jAnsi library working with Processing. I am running out of options.
I made this example:
But it still shows the normal text. Even when i try to export, it gives an error that it can't find the virtual machine.
Greetings,Dippo.
(difficult question)
I was wondering if somebody knows to get jAnsi library working with Processing. I am running out of options.
I made this example:
- //import org.fusesource.jansi.internal.*;
- //import org.fusesource.jansi.*;
- import org.fusesource.jansi.Ansi;
- //import org.fusesource.hawtjni.runtime.*;
- import org.fusesource.jansi.AnsiConsole;
- String ANSI_CLS = "\u001b[2J";
- String ANSI_HOME = "\u001b[H";
- String ANSI_BOLD = "\u001b[1m";
- String ANSI_AT55 = "\u001b[10;10H";
- public static final String ANSI_REVERSEON = "\u001b[7m";
- String ANSI_NORMAL = "\u001b[0m";
- String ANSI_WHITEONBLUE = "\u001b[37;44m";
- void setup() {
- AnsiConsole.out.println("Hello World (clear screen after this)");
- AnsiConsole.systemInstall();
- AnsiConsole.out.println(ANSI_CLS);
- AnsiConsole.out.println
- (ANSI_AT55 + ANSI_REVERSEON + "Hello world (reverse)" + ANSI_NORMAL);
- AnsiConsole.out.println
- (ANSI_HOME + ANSI_WHITEONBLUE + "Hello world (white on blue)" + ANSI_NORMAL);
- AnsiConsole.out.print
- (ANSI_BOLD + "Hello world (bold)" + ANSI_NORMAL);
- Ansi.Color coolor = Ansi.Color.RED;
- Ansi a = Ansi.ansi(80).restorCursorPosition().saveCursorPosition().a(" ").bold().fg(coolor).a("[");
- a.bold().a("] ").fg(Ansi.Color.WHITE).a("percentage").a("%").boldOff();
- AnsiConsole.out().println(a);
- AnsiConsole.out.println(ANSI_CLS);
- AnsiConsole.systemInstall();
- exit();
- }
But it still shows the normal text. Even when i try to export, it gives an error that it can't find the virtual machine.
Greetings,Dippo.
1