#include <stdint.h>
#include "color.h"
Go to the source code of this file.
|
| void | credrawchar (uint32_t row, uint32_t col) |
| | Redraws a character.
|
| |
| void | crefresh (void) |
| | Refreshes the console's screen.
|
| |
| void | cclear (color_t color) |
| | Clears the console's screen.
|
| |
| void | cclearchar (uint32_t row, uint32_t col, color_t color) |
| | Clears a cell.
|
| |
| void | cclearcurchar (color_t color) |
| | Clears the cell at the cursor's position.
|
| |
| void | cmovecursor (int32_t rows, int32_t cols) |
| | Moves the cursor by an offset.
|
| |
| void | cprint (const char *str, color_t color) |
| | Prints a string to the console, without a newline.
|
| |
| void | cprintln (const char *str, color_t color) |
| | Prints a string to the console followed by a newline.
|
| |
| void | cputchar (char c, color_t color) |
| | Prints a character at the cursor's position in the given color.
|
| |
| void | cputint (int i, color_t color) |
| | Writes an integer in base 10 at the cursor's position in the given color.
|
| |
| void | crcursor (void) |
| | Resets the cursor's position.
|
| |
| void | csetcursor (uint32_t row, uint32_t col) |
| | Sets the cursor's position.
|
| |
| void | csetcol (int32_t col) |
| | Sets the cursor's column.
|
| |
| void | csetrow (int32_t row) |
| | Sets the cursor's row.
|
| |
| uint32_t | cgetcol (void) |
| | Gets the cursor's column.
|
| |
| uint32_t | cgetrow (void) |
| | Gets the cursor's row.
|
| |
◆ cclear()
Clears the console's screen.
- Parameters
-
◆ cclearchar()
Clears a cell.
- Parameters
-
| row | The row. |
| col | The column. |
| color | Background color. |
◆ cclearcurchar()
| void cclearcurchar |
( |
color_t |
color | ) |
|
Clears the cell at the cursor's position.
- Parameters
-
◆ cgetcol()
Gets the cursor's column.
- Returns
- Column.
◆ cgetrow()
Gets the cursor's row.
- Returns
- Row.
◆ cmovecursor()
Moves the cursor by an offset.
- Parameters
-
| rows | Number of rows. |
| cols | Number of columns. |
◆ cprint()
| void cprint |
( |
const char * |
str, |
|
|
color_t |
color |
|
) |
| |
Prints a string to the console, without a newline.
- Parameters
-
| str | String to be printed. Must be null-terminated. |
| color | Foreground color. |
◆ cprintln()
| void cprintln |
( |
const char * |
str, |
|
|
color_t |
color |
|
) |
| |
Prints a string to the console followed by a newline.
- Parameters
-
| str | String to be printed. Must be null-terminated. |
| color | Foreground color of the text. |
◆ cputchar()
| void cputchar |
( |
char |
c, |
|
|
color_t |
color |
|
) |
| |
Prints a character at the cursor's position in the given color.
- Parameters
-
| c | Character to be written. |
| color | Foreground color of the text. |
◆ cputint()
| void cputint |
( |
int |
i, |
|
|
color_t |
color |
|
) |
| |
Writes an integer in base 10 at the cursor's position in the given color.
- Parameters
-
| i | Integer to be written. |
| color | Foreground color of the text. |
◆ crcursor()
Resets the cursor's position.
◆ credrawchar()
Redraws a character.
- Parameters
-
| row | The row. |
| col | The column. |
◆ crefresh()
Refreshes the console's screen.
◆ csetcol()
Sets the cursor's column.
- Parameters
-
◆ csetcursor()
Sets the cursor's position.
- Parameters
-
| row | The row. |
| col | The column. |
◆ csetrow()
Sets the cursor's row.
- Parameters
-