spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.

Home Page:https://spectreconsole.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad rendering for table live display / hidden table headers / no border and forced refresh

pchalamet opened this issue · comments

Information

  • macos
  • Sonoma 14.4.1
  • Terminal: iTerm + bash

Describe the bug
Rendering is wrong in live rendering for hidden table headers & no border. The rendering starts on the wrong line (off by 1 line) when Refresh() is requested.

To Reproduce

using Spectre.Console;
var table = new Table().AddColumn("hidden").HideHeaders().NoBorder();
AnsiConsole.Live(table).Start(ctx => 
    {
        table.AddRow("toto");
        ctx.Refresh();
        table.AddRow("titi");
    });

Expected behavior
Rendering must start on correct line.

Screenshots
What the code above renders:
image

What is expected:
image

Additional context


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