65X-DOS/include/kernel/console/console.h

31 lines
663 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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);