door_example.cpp 459 B

1234567891011121314151617
  1. #include "door.h"
  2. int main(int argc, char *argv[]) {
  3. door::Door door(argc, argv);
  4. // reset colors, clear screen.
  5. door << door::reset << door::cls << door::nl;
  6. // set Yellow on Blue
  7. door << door::ANSIColor(door::COLOR::YELLOW, door::COLOR::BLUE,
  8. door::ATTR::BOLD);
  9. // display text, reset colors, NewLine.
  10. door << "Hello World" << door::reset << door::nl;
  11. od_get_key(TRUE); // Wait for a keypress before exiting
  12. }