Windows: Increase intensity of blue text
authorDavid Neto <dneto@google.com>
Thu, 24 Aug 2017 14:34:00 +0000 (10:34 -0400)
committerDavid Neto <dneto@google.com>
Thu, 24 Aug 2017 14:40:17 +0000 (10:40 -0400)
source/print.cpp

index 8abbf123ab74eccdc99a653700f89d54e3eb3a70..8d70ea00350a1fe47508ecffbe75bb378efa20fb 100644 (file)
@@ -80,7 +80,10 @@ clr::yellow::operator const char*() {
 }
 
 clr::blue::operator const char*() {
-  SetConsoleForegroundColor(FOREGROUND_BLUE);
+  // Blue all by itself is hard to see against a black background (the
+  // default on command shell), or a medium blue background (the default
+  // on PowerShell).  So increase its intensity.
+  SetConsoleForegroundColor(FOREGROUND_BLUE | FOREGROUND_INTENSITY);
   return "";
 }