35 |
|
#include <menes-xml/parse.hpp> |
36 |
|
#include <menes-xml/textwriter.hpp> |
37 |
|
|
38 |
+ |
enum Color { reset, bright, dim, underscore = 4, blink, reverse = 7, hidden, |
39 |
+ |
black = 30, red, green, yellow, blue, magenta, cyan, white, _black = 40, |
40 |
+ |
_red, _green, _yellow, _blue, _magenta, _cyan, _white }; |
41 |
+ |
|
42 |
+ |
inline std::ostream& operator<<(std::ostream& sout, Color color) |
43 |
+ |
{ |
44 |
+ |
sout << "\033[" << unsigned(color) << 'm'; |
45 |
+ |
|
46 |
+ |
return sout; |
47 |
+ |
} |
48 |
+ |
|
49 |
|
#include "Buddy.hpp" |
50 |
|
|
51 |
|
struct Database { ext::String driver, host, user, password, db; }; |