mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 09:40:37 +02:00
CmdNews: Add short outro on interrupt
This commit is contained in:
parent
7e3ea4f47e
commit
cb4444098e
1 changed files with 11 additions and 0 deletions
|
@ -59,7 +59,18 @@ static void signal_handler (int s)
|
||||||
{
|
{
|
||||||
if (s == SIGINT)
|
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 << "\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);
|
exit (1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue