embeddedlibrary
reusable software modules for embedded systems
|
Enumerations | |
enum | term_color { Reset_all_attributes = 0, Bright, Dim, Underscore, Blink, Reverse, Hidden, ForegroundBlack = 30, ForegroundRed, ForegroundGreen, ForegroundYellow, ForegroundBlue, ForegroundMagenta, ForegroundCyan, ForegroundWhite, BackgroundBlack = 40, BackgroundRed, BackgroundGreen, BackgroundYellow, BackgroundBlue, BackgroundMagenta, BackgroundCyan, BackgroundWhite } |
Functions | |
void | Terminal_CharXY (uint8_t channel, char c, char x, char y) |
void | Terminal_HideCursor (uint8_t channel) |
void | Terminal_ShowCursor (uint8_t channel) |
void | Terminal_SetColor (uint8_t channel, enum term_color color) |
void | Terminal_ClearScreen (uint8_t channel) |
enum term_color |
This enumeration allows the user to easily set up specific configurations for the characters which are printed to the terminal. The position in this enumeration corresponds to the ANSI Escape Sequences for color text and formatting. Please reference http://bluesock.org/~willg/dev/ansi.html for specifics on which element in the enumeration is responsible for controlling what attribute within the terminal.
void Terminal_CharXY | ( | uint8_t | channel, |
char | c, | ||
char | x, | ||
char | y | ||
) |
Reusable function to push a character to a terminal at a specific location.
This function will only work when the buffer is used to communicate to a terminal supporting the used features (e.g. PuTTY)
Location 0,0 is the top left corner of the terminal
channel | UART channel |
c | char to send |
x | zero base x location |
y | zero base y location |
void Terminal_HideCursor | ( | uint8_t | channel | ) |
Function to turn the cursor off
This function will make the cursor within the terminal hidden by utilizing the DECTCEM (DEC text cursor enable mode) escape sequence "%c[?25l". The ASCII_ESC character is needed so the terminal knows that the above sequence is a control sequence.
channel | UART Channel |
void Terminal_SetColor | ( | uint8_t | channel, |
enum term_color | color | ||
) |
channel | |
color |
void Terminal_ShowCursor | ( | uint8_t | channel | ) |
channel |