You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PrintConsole adds an extra line break if printing a newline character on an already-full line. Since this character is invisible, the console should not automatically insert a newline when it is printed. I haven't tested, but I imagine that this might apply to some other invisible characters as well.
How can the issue be reproduced?
Create a C program and initialize the bottom-screen console with default settings. Then, run this code:
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); // Clear the consoleprintf("1:\n""----5----0----5----0----5----0----5----0\n""Too many line breaks...\n""\n\n""2:\n""----5----0----5----0----5----0----5----0""...that's more like it!\n""\n"
);
An extra line break will be preesent after example 1, as shown in the photo below.
Environment?
Windows 10 22H2 running Ubuntu 22.04 LTS running under WSL2 and Docker.
LibCTRU official release 2.4.1 as found in official Docker image 20241111.
Additional context?
Demonstration photo:
The text was updated successfully, but these errors were encountered:
Bug Report
What's the issue you encountered?
The PrintConsole adds an extra line break if printing a newline character on an already-full line. Since this character is invisible, the console should not automatically insert a newline when it is printed. I haven't tested, but I imagine that this might apply to some other invisible characters as well.
How can the issue be reproduced?
Create a C program and initialize the bottom-screen console with default settings. Then, run this code:
An extra line break will be preesent after example 1, as shown in the photo below.
Environment?
Windows 10 22H2 running Ubuntu 22.04 LTS running under WSL2 and Docker.
LibCTRU official release 2.4.1 as found in official Docker image 20241111.
Additional context?
Demonstration photo:
The text was updated successfully, but these errors were encountered: