13
13
#include <apt-pkg/cmndline.h>
14
14
#include <apt-pkg/strutl.h>
16
#include <apt-private/private-moo.h>
17
#include <apt-private/private-output.h>
19
#include "private-moo.h"
20
#include "private-output.h"
22
26
#include <apti18n.h>
25
std::string getMooLine() { /*{{{*/
29
static std::string getMooLine() { /*{{{*/
26
30
time_t const timenow = time(NULL);
28
32
localtime_r(&timenow, &special);
63
bool printMooLine() { /*{{{*/
67
static bool printMooLine() { /*{{{*/
64
68
std::cerr << getMooLine() << std::endl;
68
bool DoMoo1(CommandLine &CmdL) /*{{{*/
72
bool DoMoo1(CommandLine &) /*{{{*/
70
74
// our trustworthy super cow since 2001
71
75
if (_config->FindI("quiet") >= 2)
105
OutputInDepth(depth, " ") << " \e[1;97m(\e[0;33m__\e[1;97m)\e[0m\n" <<
106
OutputInDepth(depth, " ") << " \e[31m_______\e[33m~(\e[1;34m..\e[0;33m)~\e[0m\n" <<
107
OutputInDepth(depth, " ") << " \e[33m,----\e[31m\\\e[33m(\e[1;4;35moo\e[0;33m)\e[0m\n" <<
108
OutputInDepth(depth, " ") << " \e[33m/|____|,'\e[0m\n" <<
109
OutputInDepth(depth, " ") << " \e[1;5;97m*\e[0;33m /\\ /\\\e[0m\n" <<
109
OutputInDepth(depth, " ") << " \033[1;97m(\033[0;33m__\033[1;97m)\033[0m\n" <<
110
OutputInDepth(depth, " ") << " \033[31m_______\033[33m~(\033[1;34m..\033[0;33m)~\033[0m\n" <<
111
OutputInDepth(depth, " ") << " \033[33m,----\033[31m\\\033[33m(\033[1;4;35moo\033[0;33m)\033[0m\n" <<
112
OutputInDepth(depth, " ") << " \033[33m/|____|,'\033[0m\n" <<
113
OutputInDepth(depth, " ") << " \033[1;5;97m*\033[0;33m /\\ /\\\033[0m\n" <<
111
115
for (size_t i = moo.length()/2; i > 1; --i)
114
c1out << "w\e[0m\n" << moo;
118
c1out << "w\033[0m\n" << moo;
120
bool DoMoo3(CommandLine &CmdL) /*{{{*/
124
bool DoMoo3(CommandLine &) /*{{{*/
122
126
// by Robert Millan in deb:134156
123
127
if (_config->FindI("quiet") >= 2)
137
bool DoMooApril(CommandLine &CmdL) /*{{{*/
141
bool DoMooApril(CommandLine &) /*{{{*/
139
143
// by Christopher Allan Webber and proposed by Paul Tagliamonte
140
144
// in a "Community outreach": https://lists.debian.org/debian-devel/2013/04/msg00045.html