summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-11-04 11:21:06 +0100
committerJulian Andres Klode <jak@debian.org>2025-11-10 11:33:07 +0100
commit753d76f3d3b9be05d2e3517e4f1e4669531f92a3 (patch)
tree441096609ac7b95b563b22dd3a2e4c80a1488d1d /apt-private
parentd44dc9a5ed0b0a9491a9cee62cfcc6b6f1a54690 (diff)
A special cow for a special week
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-moo.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/apt-private/private-moo.cc b/apt-private/private-moo.cc
index 5eb6db56a..5f16723d3 100644
--- a/apt-private/private-moo.cc
+++ b/apt-private/private-moo.cc
@@ -107,10 +107,16 @@ static bool DoMoo2(time_t const timenow) /*{{{*/
moo;
else
{
+ bool isTaweek = false;
+ if (struct tm taweek; localtime_r(&timenow, &taweek) && taweek.tm_mday >= 13 && taweek.tm_mday <= 19 && taweek.tm_mon == 10)
+ isTaweek = true;
+ const std::array<std::string, 2> tcape = {"\033[1;34m_\033[35m__\033[97m_\033[35m__\033[34m_", "\033[34m\\"};
+ const std::array<std::string, 2> ccape = {"\033[31m_______", "\033[31m\\"};
+ const std::array<std::string, 2> &cape = isTaweek ? tcape : ccape;
c1out <<
OutputInDepth(depth, " ") << " \033[1;97m(\033[0;33m__\033[1;97m)\033[0m\n" <<
- OutputInDepth(depth, " ") << " \033[31m_______\033[33m~(\033[1;34m..\033[0;33m)~\033[0m\n" <<
- OutputInDepth(depth, " ") << " \033[33m,----\033[31m\\\033[33m(\033[1;4;35moo\033[0;33m)\033[0m\n" <<
+ OutputInDepth(depth, " ") << " " << cape[0] << "\033[33m~(\033[1;34m..\033[0;33m)~\033[0m\n" <<
+ OutputInDepth(depth, " ") << " \033[33m,----" << cape[1] << "\033[33m(\033[1;4;35moo\033[0;33m)\033[0m\n" <<
OutputInDepth(depth, " ") << " \033[33m/|____|,'\033[0m\n" <<
OutputInDepth(depth, " ") << " \033[1;5;97m*\033[0;33m /\\ /\\\033[0m\n" <<
"\033[32m";