console changes

This commit is contained in:
TuxSH 2018-02-03 02:51:34 +01:00 committed by mtheall
parent 8b13550b72
commit 9163d46529
2 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,11 @@
#ifdef _3DS
#include <3ds.h>
#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)

View File

@ -206,10 +206,10 @@ void
console_init(void)
{
consoleInit(&status_console);
consoleSetWindow(&status_console, 0, 0, 50, 1);
consoleSetWindow(&status_console, 0, 0, 160+10, 1);
consoleInit( &main_console);
consoleSetWindow(&main_console, 0, 1, 50, 29);
consoleSetWindow(&main_console, 0, 1, 160+10, 90-1);
consoleSelect(&main_console);
}