From cb4444098ef67d7c38dcc3f19a63f38088a4305a Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 2 Oct 2021 16:06:28 -0400 Subject: [PATCH] CmdNews: Add short outro on interrupt --- src/commands/CmdNews.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/commands/CmdNews.cpp b/src/commands/CmdNews.cpp index 30e8029b7..17317a59b 100644 --- a/src/commands/CmdNews.cpp +++ b/src/commands/CmdNews.cpp @@ -59,7 +59,18 @@ static void signal_handler (int s) { if (s == SIGINT) { + Color footnote; + if (Context::getContext ().color ()) { + if (Context::getContext ().config.has ("color.footnote")) + footnote = Color (Context::getContext ().config.get ("color.footnote")); + } + std::cout << "\n\nCome back and read about new features later!\n"; + + std::cout << footnote.colorize ( + "\nIf you enjoy Taskwarrior, please consider supporting the project at:\n" + " https://github.com/sponsors/GothenburgBitFactory/\n" + ); exit (1); } }