From fd01f9c9ff263b068f23837dc1a3a913a195a197 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Wed, 2 Oct 2019 20:59:20 +0200 Subject: [PATCH] Improve numbers legibility in CLI Blue turns out to be not legible e.g. on certain Macs in Iterm2 with "Dark background" color preset. --- .../src/main/java/io/prestosql/cli/InputHighlighter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presto-cli/src/main/java/io/prestosql/cli/InputHighlighter.java b/presto-cli/src/main/java/io/prestosql/cli/InputHighlighter.java index d9b6414c873d..455daf040e44 100644 --- a/presto-cli/src/main/java/io/prestosql/cli/InputHighlighter.java +++ b/presto-cli/src/main/java/io/prestosql/cli/InputHighlighter.java @@ -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; @@ -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);