Bugz Door Project
door-example.cpp
Construct a new Door object using the commandline parameters given to the main function.
#include "door.h"
int
main(
int
argc,
char
*argv[]) {
door::Door
door
(
"example"
, argc, argv);
// reset colors, clear screen.
door
<<
door::reset
<<
door::cls
<<
door::nl
;
// set Yellow on Blue
door
<<
door::ANSIColor
(
door::COLOR::YELLOW
,
door::COLOR::BLUE
,
door::ATTR::BOLD
);
// display text, reset colors, NewLine.
door
<<
"Welcome YELLOW on BLUE! Press a key to continue... "
<<
door::reset
<<
door::nl
;
door
.sleep_key(
door
.inactivity);
// Wait for a keypress before exiting
}
door::Door
Definition:
door.h:193
door::ATTR::BOLD
@ BOLD
BOLD is the same as BRIGHT.
door::ANSIColor
Foreground, Background and Attributes.
Definition:
door.h:131
door::cls
Clrscr cls
Definition:
door.cpp:1221
door::nl
NewLine nl
Definition:
door.cpp:1249
door::COLOR::YELLOW
@ YELLOW
YELLOW (3)
door::reset
ANSIColor reset(ATTR::RESET)
reset colors to normal
Definition:
door.h:400
door
The BBS door project. This is an attempt at writing a C++ BBS door toolkit.
Definition:
ansicolor.cpp:9
door::COLOR::BLUE
@ BLUE
BLUE (4)
Generated by
1.8.17