-
CRLF
- Send CRLF to terminal.
ANSIC prototype: void CRLF(void)
-
SendStr
- Send string to terminal.
ANSIC prototype: void SendStr(uint8_t *str)
- str: Pointer to char - Pointer to a string variable
-
SendNum
- Send number to terminal.
ANSIC prototype: void SendNum(int32_t number)
- number:long - Long number
-
SendFloatNum
- Send a float number to the terminal. Due to the transformations the maximum float number is limited to unsigned 32bit value for integer part and trim of four digits for fractionals.
ANSIC prototype: void SendFloatNum(float number)
- number:float - Float variable
-
SendChar
- Send char to terminal.
ANSIC prototype: void SendChar(uint8_t Val)
- Val:byte - Char to send
-
Cls
- Clear the terminal window.
ANSIC prototype: void Cls(void)
-
CursorUp
- Move cursor up.
ANSIC prototype: void CursorUp(uint8_t lines)
- lines:byte - Number of rows for shift cursor up.
-
CursorDown
- Move cursor down.
ANSIC prototype: void CursorDown(uint8_t lines)
- lines:byte - Number of rows for shift cursor down..
-
CursorLeft
- Move cursor left.
ANSIC prototype: void CursorLeft(uint8_t columns)
- columns:byte - Number of columns for shift cursor left
-
CursorRight
- Move cursor right.
ANSIC prototype: void CursorRight(uint8_t columns)
- columns:byte - Number of columns for shift cursor right
-
MoveTo
- Move cursor to position x, y. Range of coordinates can be from 1 to the size, which depends on the used terminal. Position [1,1] represents the upper left corner.
ANSIC prototype: void MoveTo(uint8_t x, uint8_t y)
- x:byte - Column number
- y:byte - Row number
-
SetColor
- Set foreground and background color. The following color constant are defined in the header file:
clBlack - Black color
clRed - Red color
clGreen - Green color
clYellow - Yellow color
clBlue - Blue color
clMagenta - Magenta color
clCyan - Cyan color
clWhite - White color
ANSIC prototype: void SetColor(uint8_t foreground, uint8_t background)
- foreground:byte - Foreground color.
- background:byte - Background color.
-
EraseLine
- Clears the current line from the cursor position to the end of line.
ANSIC prototype: void EraseLine(void)
-
ReadChar
- Read char from terminal.
ANSIC prototype: void ReadChar(uint8_t *c)
- c: Pointer to byte - Pointer to a char variable
-
KeyPressed
- Test if char was received from the terminal.
ANSIC prototype: bool KeyPressed(void)
- Return value:bool - Return true if user pressed some key
-
ReadLine
- Read string from the terminal. Waits until whole string is read. Method expects carriage return and line feed (CRLF) escape sequence as a string termination.
ANSIC prototype: void ReadLine(uint8_t *str)
- str: Pointer to char - Pointer to an user string buffer.
Note: Some methods can be implemented as macros.