Skip to content

Commit

Permalink
Improve numbers legibility in CLI
Browse files Browse the repository at this point in the history
Blue turns out to be not legible e.g. on certain Macs in Iterm2 with
"Dark background" color preset.
  • Loading branch information
findepi committed Oct 3, 2019
1 parent 7db98e6 commit fd01f9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
import static io.prestosql.cli.Console.STATEMENT_DELIMITERS;
import static io.prestosql.sql.ReservedIdentifiers.sqlKeywords;
import static java.util.Locale.ENGLISH;
import static org.jline.utils.AttributedStyle.BLUE;
import static org.jline.utils.AttributedStyle.BOLD;
import static org.jline.utils.AttributedStyle.BRIGHT;
import static org.jline.utils.AttributedStyle.CYAN;
import static org.jline.utils.AttributedStyle.DEFAULT;
import static org.jline.utils.AttributedStyle.GREEN;
import static org.jline.utils.AttributedStyle.RED;
Expand All @@ -41,7 +41,7 @@ public class InputHighlighter
{
private static final AttributedStyle KEYWORD_STYLE = BOLD;
private static final AttributedStyle STRING_STYLE = DEFAULT.foreground(GREEN);
private static final AttributedStyle NUMBER_STYLE = DEFAULT.foreground(BLUE);
private static final AttributedStyle NUMBER_STYLE = DEFAULT.foreground(CYAN);
private static final AttributedStyle COMMENT_STYLE = DEFAULT.foreground(BRIGHT).italic();
private static final AttributedStyle ERROR_STYLE = DEFAULT.foreground(RED);

Expand Down

0 comments on commit fd01f9c

Please sign in to comment.