cgma
|
Public Member Functions | |
void | print_message (const char *message) |
void | print_error (const char *message) |
Definition at line 33 of file CubitMessage.cpp.
void DefaultCubitMessageHandler::print_error | ( | const char * | message | ) | [inline, virtual] |
Implements CubitMessageHandler.
Definition at line 40 of file CubitMessage.cpp.
{ #ifdef XTERM char esc = 0x1B; // Turn on reverse video on VT102 (xterm also) // (0=normal, 1-bold, 4-underscore, 5-blink, 7-inverse) std::cout << esc << '[' << '7' << 'm'; #endif std::cout << message; std::cout.flush(); #ifdef XTERM std::cout << esc << '[' << '0' << 'm'; std::cout.flush(); #endif }
void DefaultCubitMessageHandler::print_message | ( | const char * | message | ) | [inline, virtual] |
Implements CubitMessageHandler.
Definition at line 35 of file CubitMessage.cpp.
{ std::cout << message; std::cout.flush(); }