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

Utility functions for text ouput. More...

#include "tty.h"
#include <stdint.h>
+ Include dependency graph for text.h:

Go to the source code of this file.

Macros

#define TEXT_H_
 
#define locate(x, y)    TTY_locate(x, y)
 MSX Set cursor position.
 
#define newline()    TTY_linefeed()
 MSX Line feed.
 
#define cls()    TTY_cls()
 MSX Clear the screen and move the cursor to the top left corner.
 
#define fg_color(fg)    TTY_set_fg_color(fg)
 MSX Set foreground color.
 
#define bg_color(bg)    TTY_set_bg_color(bg)
 MSX Set background color.
 
#define border_color(border)    TTY_set_border_color(border)
 MSX Set border color of the screen.
 
#define text_color(fg, bg)    TTY_set_text_color(fg, bg)
 MSX Set foreground and background color.
 
#define color(fg, bg, border)    TTY_set_color(fg, bg, border)
 MSX Set foreground, background, and border color.
 

Functions

void print (const char *str)
 MSX Print string on the screen.
 
void printc (char c)
 MSX Print character on the screen.
 
void printu (unsigned int i)
 MSX Print unsigned integer on the screen.
 
void printi (int i)
 MSX Print signed integer on the screen.
 
void printx (uint16_t x)
 MSX Print unsigned integer in hexadecimal on the screen.
 

Detailed Description

Utility functions for text ouput.

Definition in file text.h.

Macro Definition Documentation

◆ TEXT_H_

#define TEXT_H_

Definition at line 37 of file text.h.