28 lines
509 B
C
28 lines
509 B
C
#ifndef SCREEN_H_
|
|
#define SCREEN_H_
|
|
|
|
#include "stddef.h"
|
|
|
|
/*
|
|
* screen_init:
|
|
* Initializes the terminal.
|
|
*
|
|
*/
|
|
|
|
void screen_init(void);
|
|
|
|
/*
|
|
* screen_write:
|
|
* Writes the given buffer @buf of length @len on the screen, automatically
|
|
* advancing the cursor and scrolling the screen if necessary.
|
|
*
|
|
* @param buf - The buffer containing the data to be displayed
|
|
* @param len - Length of the buffer.
|
|
* @return - The number of written bytes
|
|
*
|
|
*/
|
|
|
|
size_t screen_write(char *buf, size_t len);
|
|
|
|
#endif
|