GBDK 2020 Docs
API Documentation for GBDK 2020
console.h File Reference
#include <types.h>
#include <stdint.h>

Go to the source code of this file.

Functions

void gotoxy (uint8_t x, uint8_t y)
 
uint8_t posx (void)
 
uint8_t posy (void)
 
void setchar (char c)
 
void cls ()
 

Function Documentation

◆ gotoxy()

void gotoxy ( uint8_t  x,
uint8_t  y 
)

Move the cursor to an absolute position at x, y.

x and y have units of tiles (8 pixels per unit)

See also
setchar()

◆ posx()

uint8_t posx ( void  )

Returns the current X position of the cursor.

See also
gotoxy()

◆ posy()

uint8_t posy ( void  )

Returns the current Y position of the cursor.

See also
gotoxy()

◆ setchar()

void setchar ( char  c)

Writes out a single character at the current cursor position.

Does not update the cursor or interpret the character.

See also
gotoxy()

◆ cls()

void cls ( )

Clears the screen