chore: Add course material
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef SCREEN_H
|
||||
#define SCREEN_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Screen {
|
||||
const int BLACK = 0;
|
||||
const int GRAY = 8; // FOREGROUND_INTENSITY;
|
||||
const int BLUE = 9; // FOREGROUND_RED|FOREGROUND_INTENSITY
|
||||
const int GREEN = 10; // FOREGROUND_GREEN|FOREGROUND_INTENSITY;
|
||||
const int RED = 12; // FOREGROUND_RED|FOREGROUND_INTENSITY
|
||||
const int YELLOW = RED | GREEN;
|
||||
const int WHITE = RED | GREEN | BLUE;
|
||||
const int BACKGROUND = 128; // OR (|) with the color value for gray background
|
||||
|
||||
void write(std::string s, int x, int y, int color);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user