31 lines
663 B
C
31 lines
663 B
C
// SPDX-License-Identifier: MIT
|
||
//
|
||
// include/kernel/console/console.h
|
||
// Defines for the virtual console driver
|
||
//
|
||
// Copyright © 2024 Kyle J Cardoza <Kyle.Cardoza@icloud.com>
|
||
|
||
#pragma once
|
||
|
||
#include <stdint.h>
|
||
|
||
#define CONSOLE_WIDTH 80
|
||
#define CONSOLE_HEIGHT 30
|
||
#define CONSOLE_AREA (CONSOLE_WIDTH * CONSOLE_HEIGHT)
|
||
|
||
extern uint8_t console_screen_text[CONSOLE_HEIGHT][CONSOLE_WIDTH];
|
||
|
||
extern uint8_t console_screen_color[CONSOLE_HEIGHT][CONSOLE_WIDTH];
|
||
|
||
extern uint8_t console_text_colour;
|
||
|
||
extern uint8_t console_bg_colour;
|
||
|
||
extern uint8_t console_cursor_row;
|
||
|
||
extern uint8_t console_cursor_column;
|
||
|
||
void console_init(void);
|
||
|
||
void console_redraw(void);
|