42 char default_background_color;
43 char default_foreground_color;
47 int cursor_line_width;
48 unsigned char cursor_custom_data[6];
49 BOOL cursor_blink_enabled;
50 BOOL cursor_blink_status;
51 unsigned cursor_blink_timestamp;
52 unsigned cursor_blink_duration;
56 #define NIO_CURSOR_BLOCK 0
57 #define NIO_CURSOR_UNDERSCORE 1
58 #define NIO_CURSOR_VERTICAL 2
59 #define NIO_CURSOR_CUSTOM 3
61 #define NIO_CHAR_WIDTH 6
62 #define NIO_CHAR_HEIGHT 8
64 #define NIO_MAX_ROWS 30
65 #define NIO_MAX_COLS 53
76 void nio_grid_puts(
const int offset_x,
const int offset_y,
const int x,
const int y,
const char *str,
const char bgColor,
const char textColor);
87 void nio_grid_putc(
const int offset_x,
const int offset_y,
const int x,
const int y,
const char ch,
const char bgColor,
const char textColor);
160 void nio_init(
nio_console* c,
const int size_x,
const int size_y,
const int offset_x,
const int offset_y,
const char background_color,
const char foreground_color,
const BOOL drawing_enabled);
228 #define nio_getc nio_fgetc
231 #define nio_putc nio_fputc
239 int reg_store(
void* dataptr,
size_t size,
char* regpath);
368 #ifdef NIO_KEEP_COMPATIBILITY
369 #define nio_InitConsole(a,b,c,d,e,f,g) nio_init(a,b,c,d,e,f,g,TRUE)
370 #define nio_DrawConsole nio_fflush
371 #define nio_Clear nio_clear
372 #define nio_PrintChar(a,b) nio_fputc(b,a)
373 #define nio_EnableDrawing nio_drawing_enabled
374 #define nio_PrintStr(a,b) nio_fputs(b,a)
375 #define nio_GetChar nio_fgetc
376 #define nio_GetStr(a,b) nio_fgets(b,1000,a)
377 #define nio_SetColor nio_color
378 #define nio_CleanUp nio_free
379 #define setPixel nio_pixel_set
380 #define putChar nio_pixel_putc
381 #define putStr nio_pixel_puts
382 #define nio_drawstr nio_grid_puts
383 #define nio_drawch nio_grid_putc
384 #define nio_ScrollDown nio_scroll
385 #define nio_DrawChar nio_csl_drawchar
386 #define nio_SetChar nio_csl_savechar
387 #define nio_printf nio_fprintf
389 #define uart_putc uart_putchar
390 #define uart_getc uart_getchar
392 #define get_current_time nio_time_get
393 #define nio_DrawCursor nio_cursor_draw
394 #define nio_EraseCursor nio_cursor_erase
395 #define nio_DrawBlinkingCursor nio_cursor_blinking_draw
396 #define nio_ResetBlinkingCursor nio_cursor_blinking_reset
397 #define nio_EnableCursor nio_cursor_enable
398 #define nio_EnableCursorBlink nio_cursor_blinking_enable
399 #define nio_SetCursorBlinkDuration nio_cursor_blinking_duration
400 #define nio_SetCursorType nio_cursor_type
401 #define nio_SetCursorWidth nio_cursor_width
402 #define nio_SetCursorCustom nio_cursor_custom
405 #ifdef NIO_REPLACE_STDIO
406 #define putchar nio_putchar
407 #define puts nio_puts
408 #define getchar nio_getchar
409 #define gets nio_gets
410 #define printf nio_printf
411 #define perror nio_perror
414 #ifdef UART_REPLACE_STDIO
415 #define putchar uart_putchar
416 #define puts uart_puts
417 #define getchar uart_getchar
418 #define gets uart_gets
419 #define printf uart_printf