Files | |
file | serial_console.c |
file | serial_console.h |
Defines | |
#define | MAX_CONTROL 20 |
Typedefs | |
typedef void(*) | putc_function_t (char) |
Enumerations | |
enum | sgr_color_index |
enum | sgr_command |
Functions | |
static void | draw_text_data (keyfield_t *data, sysarg_t x0, sysarg_t y0, sysarg_t width, sysarg_t height) |
Draw text data to viewport. | |
void | serial_client_connection (ipc_callid_t iid, ipc_call_t *icall) |
Main function of the thread serving client connections. | |
void | serial_clrscr (void) |
void | serial_console_init (putc_function_t putc_fn, sysarg_t w, sysarg_t h) |
void | serial_cursor_disable (void) |
void | serial_cursor_enable (void) |
void | serial_goto (const sysarg_t col, const sysarg_t row) |
static void | serial_putchar (wchar_t ch) |
void | serial_puts (const char *str) |
void | serial_scroll (ssize_t i) |
static void | serial_set_attrs (attrs_t *a) |
static void | serial_set_idx (uint8_t fgcolor, uint8_t bgcolor, uint8_t flags) |
static void | serial_set_rgb (uint32_t fgcolor, uint32_t bgcolor) |
void | serial_set_scroll_region (sysarg_t last_row) |
Set scrolling region. | |
static void | serial_set_style (console_style_t style) |
static void | serial_sgr (const unsigned int mode) |
ECMA-48 Set Graphics Rendition. | |
Variables | |
static int | client_connected = 0 |
static bool | color = true |
True if producing color output. | |
static int | color_map [] |
static attrs_t | cur_attr |
static sysarg_t | lastcol = 0 |
static sysarg_t | lastrow = 0 |
static putc_function_t | putc_function |
static sysarg_t | scr_height |
static sysarg_t | scr_width |
static bool | utf8 = false |
True if producing UTF8 output. |
..)
static void draw_text_data | ( | keyfield_t * | data, | |
sysarg_t | x0, | |||
sysarg_t | y0, | |||
sysarg_t | width, | |||
sysarg_t | height | |||
) | [static] |
Draw text data to viewport.
vport | Viewport id | |
data | Text data. | |
x0 | Leftmost column of the area. | |
y0 | Topmost row of the area. | |
width | Number of rows. | |
height | Number of columns. |
Definition at line 287 of file serial_console.c.