libmsx
C library for MSX
Loading...
Searching...
No Matches
Teletype/console device interface.

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

+ Collaboration diagram for Teletype/console device interface.:

Data Structures

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

Functions

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.
 

Variables

const struct TTY_DeviceTTY_device
 

Detailed Description

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

Function Documentation

◆ TTY_locate()

void TTY_locate ( uint8_t  x,
uint8_t  y 
)

MSX Set cursor position.

Parameters
xx coordinate.
yy coordinate.

◆ TTY_linefeed()

void TTY_linefeed ( void  )

MSX Line feed.

◆ TTY_cls()

void TTY_cls ( void  )

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
ca byte.

◆ TTY_set_fg_color()

void TTY_set_fg_color ( uint8_t  fg)

MSX Set foreground color.

Parameters
fgforeground color of text.

◆ TTY_set_bg_color()

void TTY_set_bg_color ( uint8_t  bg)

MSX Set background color.

Parameters
bgbackground color of text.

◆ TTY_set_border_color()

void TTY_set_border_color ( uint8_t  border)

MSX Set border color of the screen.

Parameters
borderborder 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
fgforeground color of text.
bgbackground 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
fgforeground color of text.
bgbackground color of text.
borderborder color of the screen.

Variable Documentation

◆ TTY_device

const struct TTY_Device* TTY_device
extern