llvm-mos-sdk
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
console.h
Go to the documentation of this file.
1 // Copyright 2024 LLVM-MOS Project
2 // Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3 // See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4 // information.
5 
6 #include <stdint.h>
7 
8 #ifndef _NEO_CONSOLE_H
9 #define _NEO_CONSOLE_H
10 
11 #include <neo6502.h>
12 #include "types.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
24 
31 
40 
48 void neo_console_read_line(char *line);
49 
57 
64 void neo_console_define_hotkey(uint8_t hotkey, const char *str);
65 
72 void neo_console_define_char(char ch, const uint8_t *bitmap);
73 
79 void neo_console_write_char(char ch);
80 
88 
93 
101 
106 
114 
124 
132 
140 
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif
uint8_t neo_console_status(void)
Check to see if the keyboard queue is empty.
void neo_console_read_line(char *line)
Read the current line below the cursor, and move the cursor by one line. The line is stored in C stri...
void neo_console_define_hotkey_p(uint8_t hotkey, const neo_pstring_t *str)
Define a hotkey which emits a Pascal-style string when pressed.
void neo_console_get_text_color(uint8_t *fg, uint8_t *bg)
Fetch the text color.
void neo_console_read_line_p(neo_pstring_t *line)
Read the current line below the cursor, and move the cursor by one line. The line is stored in Pascal...
void neo_console_clear_screen(void)
Clear the console screen.
void neo_console_screen_size(uint8_t *width, uint8_t *height)
Fetch the console size, in characters.
void neo_console_clear_region(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2)
Clear all characters within the specified region.
void neo_console_cursor_pos(uint8_t *x, uint8_t *y)
Fetch the cursor position.
void neo_console_define_hotkey(uint8_t hotkey, const char *str)
Define a hotkey which emits a C-style string when pressed.
void neo_console_define_char(char ch, const uint8_t *bitmap)
Define a font character.
void neo_console_list_hotkeys(void)
Display the current function key definitions.
void neo_console_set_cursor_pos(uint8_t x, uint8_t y)
Move the cursor to the specified position.
char neo_console_read_char(void)
Read and remove a key press.
void neo_console_set_cursor_visibility(uint8_t value)
Set the cursor visibility.
void neo_console_set_text_color(uint8_t fg, uint8_t bg)
Set the text color.
void neo_console_write_char(char ch)
Write a character to the console.
byte byte x1
Definition: api.h:72
byte x
Definition: api.h:26
byte byte y
Definition: api.h:26
byte byte byte y1
Definition: api.h:72
::uint8_t uint8_t
Definition: cstdint:21
Definition: types.h:15