ftpiiu_plugin/include/console.h

45 lines
841 B
C
Raw Normal View History

2014-11-23 23:39:00 +01:00
#pragma once
#ifdef _3DS
2016-01-26 06:55:59 +01:00
#include <3ds.h>
2018-02-03 02:51:34 +01:00
#elif defined(SWITCH)
#include <switch.h>
#endif
#if defined(_3DS) || defined(SWITCH)
#define ESC(x) "\x1b[" #x
#define RESET ESC(0m)
#define BLACK ESC(30m)
#define RED ESC(31;1m)
#define GREEN ESC(32;1m)
#define YELLOW ESC(33;1m)
#define BLUE ESC(34;1m)
#define MAGENTA ESC(35;1m)
#define CYAN ESC(36;1m)
#define WHITE ESC(37;1m)
#else
#define ESC(x)
#define RESET
#define BLACK
#define RED
#define GREEN
#define YELLOW
#define BLUE
#define MAGENTA
#define CYAN
#define WHITE
#endif
2014-11-23 23:39:00 +01:00
void console_init(void);
__attribute__((format(printf,1,2)))
void console_set_status(const char *fmt, ...);
__attribute__((format(printf,1,2)))
void console_print(const char *fmt, ...);
2017-07-26 04:55:16 +02:00
__attribute__((format(printf,1,2)))
void debug_print(const char *fmt, ...);
2014-11-23 23:39:00 +01:00
void console_render(void);