libdragon
|
Console Support. More...
#include <stdio.h>
#include <stdint.h>
#include <malloc.h>
#include <string.h>
#include <stdarg.h>
#include <sys/stat.h>
#include "system.h"
#include "libdragon.h"
Defines | |
#define | CONSOLE_SIZE ((sizeof(char) * CONSOLE_WIDTH * CONSOLE_HEIGHT) + sizeof(char)) |
Size of the console buffer in bytes. | |
#define | move_buffer() |
Macro to move the console up one line. | |
Functions | |
static void | __console_render () |
Helper function to render the console. | |
void | console_set_render_mode (int mode) |
Set the console rendering mode. | |
static int | __console_write (char *buf, unsigned int len) |
Newlib hook to allow printf/iprintf to appear on console. | |
void | console_init () |
Initialize the console. | |
void | console_close () |
Close the console. | |
void | console_clear () |
Clear the console. | |
void | console_render () |
Render the console. | |
Variables | |
static char * | render_buffer = 0 |
The console buffer. | |
static int | render_now |
Internal state of the render mode. | |
static stdio_t | console_calls |
Structure used for hooking console commands to stdio. |
Console Support.