Skip to content

Failing To Render On Windows Terminal #703

@sangeethnandakumar

Description

@sangeethnandakumar

Ways To Reproduce:

  1. Setup Windows Terminal (https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701#activetab=pivot:overviewtab) with Visual Studio.
  2. Create a simple progress view

using Spectre.Console;

AnsiConsole.Progress()
    .Start(ctx =>
    {
        // Define tasks
        var task1 = ctx.AddTask("[green]Reticulating splines[/]");
        var task2 = ctx.AddTask("[green]Folding space[/]");

        while (!ctx.IsFinished)
        {
            task1.Increment(1.5);
            task2.Increment(0.5);
            Thread.Sleep(100);
        }
    });

Console.ReadKey();
  1. Run the program. This will print and updates an active progress bar
    image

  2. Now adjust the width of Windows Terminal while progress bar is running. The render fails and messes up the console.
    image

  3. There is no going back after this. Once console got messy, Even if we resize the console back to normal or maximized stage, The screen won't update to normal way


Please upvote 👍 this issue if you are interested in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⭐ top bugTop bug.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions