77static std::string
c(
const Colors& color);
86static void clearSection(
int x,
int y,
int width,
int height);
static void printInSection(int x, int y, std::string text)
printInSection takes a section of the terminal and prints the specified string in the section
Definition write.cpp:61
static std::string c(const Colors &color)
c method returns a color associated with enum
Definition write.cpp:67
static void clearSection(int x, int y, int width, int height)
clearSection erases specified section of the terminal by replacing them with empty strings
Definition write.cpp:48
Colors
Colors integer enum creates an easy interface for defining colors to use in the console when printing...
Definition write.h:55
@ ENDCOLOR
Definition write.h:63
@ RED
Definition write.h:57
@ CYAN
Definition write.h:61
@ WHITE
Definition write.h:62
@ BLACK
Definition write.h:59
@ BLUE
Definition write.h:58
@ YELLOW
Definition write.h:56
@ PURPLE
Definition write.h:60
Write()
Definition write.cpp:37
static void clearAllConsole()
clearAllConsole method clears the entire console erasing all characters on the console screen
Definition write.cpp:106
static TerminalSize myTerminalSize
myTerminalSize is a public variable to use throughout the application to easily query the terminal di...
Definition write.h:32
TerminalSize(const int &width, const int &height)
Constructor takes in width and height and initializes struct.
Definition write.h:49
int height
Definition write.h:40
int width
Definition write.h:41