Skip to content

Commit

Permalink
add faint to test table
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Dec 13, 2020
1 parent 39616d3 commit f5a9b92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/org/fusesource/jansi/Ansi.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.fusesource.jansi;

import java.io.IOException;
import java.util.ArrayList;
import java.util.concurrent.Callable;

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/fusesource/jansi/AnsiMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.io.PrintStream;
import java.util.Properties;

import org.fusesource.jansi.Ansi.Attribute;
import org.fusesource.jansi.internal.CLibrary;
import org.fusesource.jansi.internal.JansiLoader;

Expand Down Expand Up @@ -194,6 +195,16 @@ private static void testAnsi(boolean stderr) {
s.print(" " + ansi().bold().fg(c) + c + ansi().reset());
}
s.println();
s.print(" faint:");
for(Ansi.Color c: Ansi.Color.values()) {
s.print(" " + ansi().a(Attribute.INTENSITY_FAINT).fg(c) + c + ansi().reset());
}
s.println();
s.print(" bold+faint:");
for(Ansi.Color c: Ansi.Color.values()) {
s.print(" " + ansi().bold().a(Attribute.INTENSITY_FAINT).fg(c) + c + ansi().reset());
}
s.println();
Ansi ansi = ansi();
ansi.a(" 256 colors: ");
for (int i = 0; i < 6*6*6; i++) {
Expand Down

0 comments on commit f5a9b92

Please sign in to comment.