We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dcc4cc commit f7791b5Copy full SHA for f7791b5
libctru/source/console.c
@@ -892,12 +892,6 @@ void consolePrintChar(int c) {
892
if(currentConsole->PrintChar(currentConsole, c))
893
return;
894
895
- if(currentConsole->cursorX >= currentConsole->windowWidth) {
896
- currentConsole->cursorX = 0;
897
-
898
- newRow();
899
- }
900
901
switch(c) {
902
/*
903
The only special characters we will handle are tab (\t), carriage return (\r), line feed (\n)
@@ -933,6 +927,11 @@ void consolePrintChar(int c) {
933
927
gfxFlushBuffers();
934
928
break;
935
929
default:
930
+ if(currentConsole->cursorX >= currentConsole->windowWidth) {
931
+ currentConsole->cursorX = 0;
932
+
+ newRow();
+ }
936
consoleDrawChar(c);
937
++currentConsole->cursorX ;
938
0 commit comments