hos/kernel/char/console.h

38 lines
668 B
C

// console.h
// Author: Josh Holtrop
// Date: 08/02/04
// Modified: 08/03/04
#ifndef __HOS_CONSOLE__
#define __HOS_CONSOLE__ __HOS_CONSOLE__
#include "hos_defines.h"
#include "fs/devices.h"
typedef struct
{
u32_t escapeValue[8];
u16_t cursorPosition;
u16_t width;
u16_t height;
u16_t *buffer;
u16_t 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;
char escapeLevel;
char escapePosition;
} console_t;
int console_init(u32_t num, int width, int height);
int console_activate(int num);
int console_char_write(minor_t id, u64_t position, int c);
#endif