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

Comparing trunk/Zoe.cpp (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 18 | Line 18 | extern "C"
18   #include <unistd.h>
19   }
20  
21 enum Color { reset, bright, dim, underscore = 4, blink, reverse = 7, hidden,
22        black = 30, red, green, yellow, blue, magenta, cyan, white, _black = 40,
23        _red, _green, _yellow, _blue, _magenta, _cyan, _white };
24
25 inline std::ostream& operator<<(std::ostream& sout, Color color)
26 {
27        sout << "\033[" << unsigned(color) << 'm';
28
29        return sout;
30 }
31
21   int main(int argc, char* argv[])
22   {
23          Zoe::program = argv[0];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines