Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
#ifndef CONSOLE_H_INCLUDED | ||
#define CONSOLE_H_INCLUDED | ||
|
||
enum { | ||
COLOR_WHITE, | ||
COLOR_RED, | ||
COLOR_GREEN, | ||
COLOR_BLUE, | ||
COLOR_BLACK, | ||
COLOR_PURPLE, | ||
COLOR_YELLOW, | ||
COLOR_CYAN, | ||
COLOR_ORANGE, | ||
COLOR_BROWN, | ||
COLOR_LTRED, | ||
COLOR_GREY1, | ||
COLOR_GREY2, | ||
COLOR_LTGREEN, | ||
COLOR_LTBLUE, | ||
COLOR_GREY3, | ||
}; | ||
|
||
void clear_screen(); | ||
void up_cursor(); | ||
void down_cursor(); | ||
void left_cursor(); | ||
void right_cursor(); | ||
void move_cursor(int x, int y); | ||
void get_cursor(int* x, int* y); | ||
void set_color(int c); | ||
|
||
#endif /* CONSOLE_H_INCLUDED */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
50 PRINT CHR$(144),"BLACK" | ||
10 PRINT CHR$(5),"WHITE" | ||
20 PRINT CHR$(28),"RED" | ||
80 PRINT CHR$(159),"CYAN" | ||
60 PRINT CHR$(156),"PURPLE" | ||
30 PRINT CHR$(30),"GREEN" | ||
40 PRINT CHR$(31),"BLUE" | ||
70 PRINT CHR$(158),"YELLOW" | ||
90 PRINT CHR$(129),"ORANGE" | ||
100 PRINT CHR$(149),"BROWN" | ||
110 PRINT CHR$(150),"LT. RED" | ||
120 PRINT CHR$(151),"DK. GREY" | ||
130 PRINT CHR$(152),"GREY" | ||
140 PRINT CHR$(153),"LT. GREEN" | ||
150 PRINT CHR$(154),"LT. BLUE" | ||
160 PRINT CHR$(155),"LT. GREY" |