embeddedlibrary
reusable software modules for embedded systems
terminal.h
1 #ifndef _TERMINAL_H_
2 #define _TERMINAL_H_
3 
19 enum term_color {
20  Reset_all_attributes = 0,
21  Bright,
22  Dim,
23  Underscore,
24  Blink,
25  Reverse,
26  Hidden,
27  ForegroundBlack = 30,
28  ForegroundRed,
29  ForegroundGreen,
30  ForegroundYellow,
31  ForegroundBlue,
32  ForegroundMagenta,
33  ForegroundCyan,
34  ForegroundWhite,
35  BackgroundBlack = 40,
36  BackgroundRed,
37  BackgroundGreen,
38  BackgroundYellow,
39  BackgroundBlue,
40  BackgroundMagenta,
41  BackgroundCyan,
42  BackgroundWhite
43 };
44 
57 void Terminal_CharXY(uint8_t channel, char c, char x, char y);
58 
68 void Terminal_HideCursor(uint8_t channel);
69 
76 void Terminal_ShowCursor(uint8_t channel);
77 
85 void Terminal_SetColor(uint8_t channel, enum term_color color);
86 
87 void Terminal_ClearScreen(uint8_t channel);
88 
90 #endif // _TERMINAL_H_
void Terminal_HideCursor(uint8_t channel)
Definition: terminal.c:9
void Terminal_CharXY(uint8_t channel, char c, char x, char y)
Definition: terminal.c:5
void Terminal_ShowCursor(uint8_t channel)
Definition: terminal.c:13
term_color
Definition: terminal.h:19
void Terminal_SetColor(uint8_t channel, enum term_color color)
Definition: terminal.c:21