mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-05 16:09:24 +02:00
refactor console code for better ansi escape-code handling (#682)
This commit is contained in:
parent
a4cd3bd86b
commit
b186ec08bc
@ -121,6 +121,8 @@ struct PrintConsole
|
||||
#define CONSOLE_CROSSED_OUT (1<<8) ///< Crossed out text
|
||||
#define CONSOLE_FG_CUSTOM (1<<9) ///< Foreground custom color
|
||||
#define CONSOLE_BG_CUSTOM (1<<10) ///< Background custom color
|
||||
#define CONSOLE_COLOR_FG_BRIGHT (1<<11) ///< Bright foreground color
|
||||
#define CONSOLE_COLOR_BG_BRIGHT (1<<12) ///< Bright background color
|
||||
|
||||
/// Console debug devices supported by libnx.
|
||||
typedef enum {
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -172,8 +172,8 @@ static void ConsoleSwRenderer_scrollWindow(PrintConsole* con)
|
||||
int i,j;
|
||||
u32 x, y;
|
||||
|
||||
x = con->windowX * 16;
|
||||
y = con->windowY * 16;
|
||||
x = (con->windowX - 1) * 16;
|
||||
y = (con->windowY - 1) * 16;
|
||||
|
||||
for (i=0; i<con->windowWidth*16; i+=sizeof(u128)/sizeof(u16)) {
|
||||
u128 *from;
|
||||
|
Loading…
Reference in New Issue
Block a user