ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Zoe.hpp
(Generate patch)

Comparing trunk/Zoe.hpp (file contents):
Revision 21 by douglas, 2004-07-16T23:37:41-07:00 vs.
Revision 22 by douglas, 2004-07-17T00:54:46-07:00

# Line 35 | Line 35 | using std::cerr;
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; };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines