libmsx
C library for MSX
Loading...
Searching...
No Matches
tty.h File Reference

Teletype/console device interface. More...

#include <stdint.h>
+ Include dependency graph for tty.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

Macros

#define TTY_H_
 

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.

Definition in file tty.h.

Macro Definition Documentation

◆ TTY_H_

#define TTY_H_

Definition at line 32 of file tty.h.