libmsx
C library for MSX
Loading...
Searching...
No Matches

Teletype/console device interface for hardware / screen mode abstraction. More...

#include <tty.h>

Data Fields

uint8_t columns
 Columns of the text screen.
 
uint8_t lines
 Lines of the text screen.
 
void(* clear_screen )(void)
 Clear the text screen.
 
void(* render_char )(uint8_t c)
 Render a character at the cursor position.
 
void(* set_text_color )(uint8_t fg, uint8_t bg)
 Set foreground and background color of text.
 
void(* set_border_color )(uint8_t border)
 Set border color of the screen.
 

Detailed Description

Teletype/console device interface for hardware / screen mode abstraction.

Definition at line 46 of file tty.h.

Field Documentation

◆ columns

uint8_t TTY_Device::columns

Columns of the text screen.

Definition at line 48 of file tty.h.

◆ lines

uint8_t TTY_Device::lines

Lines of the text screen.

Definition at line 50 of file tty.h.

◆ clear_screen

void(* TTY_Device::clear_screen) (void)

Clear the text screen.

Definition at line 52 of file tty.h.

◆ render_char

void(* TTY_Device::render_char) (uint8_t c)

Render a character at the cursor position.

Definition at line 54 of file tty.h.

◆ set_text_color

void(* TTY_Device::set_text_color) (uint8_t fg, uint8_t bg)

Set foreground and background color of text.

Definition at line 56 of file tty.h.

◆ set_border_color

void(* TTY_Device::set_border_color) (uint8_t border)

Set border color of the screen.

Definition at line 58 of file tty.h.


The documentation for this struct was generated from the following file: