Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrintConsole Adds Extra Line Breaks on Full Lines #555

Open
Wyatt-James opened this issue Nov 21, 2024 · 0 comments
Open

PrintConsole Adds Extra Line Breaks on Full Lines #555

Wyatt-James opened this issue Nov 21, 2024 · 0 comments

Comments

@Wyatt-James
Copy link

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:

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 console
printf("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:
20241120_215417cropped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant