# HG changeset patch # User František Kučera # Date 1656768119 -7200 # Node ID e1339b8e838ea2a8788d74ef1d4f8e39c25973aa # Parent 59f3cb26bfe723bfc6f47579221a02ae4addd1fb configurable color schemes: rename monochrome to black-and-white (it is still up to date + names will start with different letter) diff -r 59f3cb26bfe7 -r e1339b8e838e bash-completion.sh --- a/bash-completion.sh Fri Jul 01 23:38:15 2022 +0200 +++ b/bash-completion.sh Sat Jul 02 15:21:59 2022 +0200 @@ -38,7 +38,7 @@ COLOR_SCHEMES=( "greenish" "amberish" - "monochrome" + "black-and-white" "midnight" ) diff -r 59f3cb26bfe7 -r e1339b8e838e src/CLIParser.h --- a/src/CLIParser.h Fri Jul 01 23:38:15 2022 +0200 +++ b/src/CLIParser.h Sat Jul 02 15:21:59 2022 +0200 @@ -61,9 +61,9 @@ Configuration::ColorScheme parseColorScheme(const relpipe::reader::string_t& value) { if (value == L"greenish") return Configuration::ColorScheme::Greenish; else if (value == L"amberish") return Configuration::ColorScheme::Amberish; - else if (value == L"monochrome") return Configuration::ColorScheme::Monochrome; + else if (value == L"black-and-white") return Configuration::ColorScheme::BlackAndWhite; else if (value == L"midnight") return Configuration::ColorScheme::Midnight; - else throw relpipe::cli::RelpipeCLIException(L"Unable to parse ColorScheme value: " + value + L" (expecting green-screen, monochrome or midnight)", relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); + else throw relpipe::cli::RelpipeCLIException(L"Unable to parse ColorScheme value: " + value + L" (expecting greenish, amberish, midnight or black-and-white)", relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); } Configuration::TableStyle parseTableStyle(const relpipe::reader::string_t& value) { diff -r 59f3cb26bfe7 -r e1339b8e838e src/Configuration.h --- a/src/Configuration.h Fri Jul 01 23:38:15 2022 +0200 +++ b/src/Configuration.h Sat Jul 02 15:21:59 2022 +0200 @@ -44,7 +44,7 @@ enum class ColorScheme { Greenish, Amberish, - Monochrome, + BlackAndWhite, Midnight }; diff -r 59f3cb26bfe7 -r e1339b8e838e src/TabularPrefetchingHandler.h --- a/src/TabularPrefetchingHandler.h Fri Jul 01 23:38:15 2022 +0200 +++ b/src/TabularPrefetchingHandler.h Sat Jul 02 15:21:59 2022 +0200 @@ -260,7 +260,7 @@ cs = ColorScheme(); cs.border = cs.ESC_YELLOW; cs.value = cs.ESC_AMBER; - } else if (configuration.colorScheme == Configuration::ColorScheme::Monochrome) { + } else if (configuration.colorScheme == Configuration::ColorScheme::BlackAndWhite) { cs = ColorScheme(); cs.border = cs.ESC_EMPTY; cs.count = cs.ESC_EMPTY;