Teletype/console device interface for hardware / screen mode abstraction.
More...
|
struct | TTY_Device |
| Teletype/console device interface for hardware / screen mode abstraction. More...
|
|
|
void | TTY_locate (uint8_t x, uint8_t y) |
| MSX Set cursor position.
|
|
void | TTY_linefeed (void) |
| MSX Line feed.
|
|
void | TTY_cls (void) |
| MSX Clear the screen and move the cursor to the top left corner.
|
|
void | TTY_put (uint8_t c) |
| MSX Send a byte to the TTY device.
|
|
void | TTY_set_fg_color (uint8_t fg) |
| MSX Set foreground color.
|
|
void | TTY_set_bg_color (uint8_t bg) |
| MSX Set background color.
|
|
void | TTY_set_border_color (uint8_t border) |
| MSX Set border color of the screen.
|
|
void | TTY_set_text_color (uint8_t fg, uint8_t bg) |
| MSX Set foreground and background color.
|
|
void | TTY_set_color (uint8_t fg, uint8_t bg, uint8_t border) |
| MSX Set foreground, background, and border color.
|
|
Teletype/console device interface for hardware / screen mode abstraction.
◆ TTY_Device
Teletype/console device interface for hardware / screen mode abstraction.
Definition at line 46 of file tty.h.
Data Fields |
uint8_t |
columns |
Columns of the text screen. |
uint8_t |
lines |
Lines of the text screen. |
void(*)(void) |
clear_screen |
Clear the text screen. |
void(*)(uint8_t c) |
render_char |
Render a character at the cursor position. |
void(*)(uint8_t fg, uint8_t bg) |
set_text_color |
Set foreground and background color of text. |
void(*)(uint8_t border) |
set_border_color |
Set border color of the screen. |
◆ TTY_locate()
void TTY_locate |
( |
uint8_t | x, |
|
|
uint8_t | y ) |
MSX
Set cursor position.
- Parameters
-
x | x coordinate. |
y | y coordinate. |
◆ TTY_linefeed()
void TTY_linefeed |
( |
void | | ) |
|
◆ TTY_cls()
MSX
Clear the screen and move the cursor to the top left corner.
◆ TTY_put()
void TTY_put |
( |
uint8_t | c | ) |
|
MSX
Send a byte to the TTY device.
- Parameters
-
◆ TTY_set_fg_color()
void TTY_set_fg_color |
( |
uint8_t | fg | ) |
|
MSX
Set foreground color.
- Parameters
-
fg | foreground color of text. |
◆ TTY_set_bg_color()
void TTY_set_bg_color |
( |
uint8_t | bg | ) |
|
MSX
Set background color.
- Parameters
-
bg | background color of text. |
◆ TTY_set_border_color()
void TTY_set_border_color |
( |
uint8_t | border | ) |
|
MSX
Set border color of the screen.
- Parameters
-
border | border color of the screen. |
◆ TTY_set_text_color()
void TTY_set_text_color |
( |
uint8_t | fg, |
|
|
uint8_t | bg ) |
MSX
Set foreground and background color.
- Parameters
-
fg | foreground color of text. |
bg | background color of text. |
◆ TTY_set_color()
void TTY_set_color |
( |
uint8_t | fg, |
|
|
uint8_t | bg, |
|
|
uint8_t | border ) |
MSX
Set foreground, background, and border color.
- Parameters
-
fg | foreground color of text. |
bg | background color of text. |
border | border color of the screen. |
◆ TTY_device