// vconsole.h // Author: Josh Holtrop // Date: 08/02/04 // Modified: 08/07/04 #ifndef __HOS_VCONSOLE__ #define __HOS_VCONSOLE__ __HOS_VCONSOLE__ #include "hos_defines.h" #include "fs/devices.h" #define VCONSOLE_MAX 16 typedef struct { u16_t *buffer; u32_t escapeValue[8]; u16_t cursorPosition; u16_t width; u16_t height; short cursorStack[16]; u8_t attribute; u8_t foreground; u8_t background; u8_t bold; u8_t reverse; u8_t blink; u8_t concealed; u8_t cursorStackPosition; u8_t escapeLevel; u8_t escapePosition; } vconsole_t; int vconsole_init(major_t major); minor_t vconsole_new(int width, int height); int vconsole_draw(minor_t id); int vconsole_char_write(minor_t id, int c); #endif