From 753d76f3d3b9be05d2e3517e4f1e4669531f92a3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 4 Nov 2025 11:21:06 +0100 Subject: A special cow for a special week --- apt-private/private-moo.cc | 10 ++++++++-- 1 file 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 tcape = {"\033[1;34m_\033[35m__\033[97m_\033[35m__\033[34m_", "\033[34m\\"}; + const std::array ccape = {"\033[31m_______", "\033[31m\\"}; + const std::array &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"; -- cgit v1.2.3-70-g09d2