Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Spectre.Console/Live/LiveRenderable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public IRenderable PositionCursor()
}

var linesToMoveUp = _shape.Value.Height - 1;
return new ControlCode("\r" + (EL(2) + CUU(1)).Repeat(linesToMoveUp));
return new ControlCode("\r" + CUU(linesToMoveUp));
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[?25l
* foo



- bar



* baz

[?25h

This file was deleted.

26 changes: 0 additions & 26 deletions test/Spectre.Console.Tests/Unit/Live/StatusTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,4 @@ public Task Should_Render_Status_Correctly()
// Then
return Verifier.Verify(console.Output);
}

[Fact]
[Expectation("WriteLineOverflow")]
public Task Should_Render_Correctly_When_WriteLine_Exceeds_Console_Width()
{
// Given
var console = new TestConsole()
.Colors(ColorSystem.TrueColor)
.Width(100)
.Interactive()
.EmitAnsiSequences();
var status = new Status(console)
{
AutoRefresh = false,
};

// When
status.Start("long text that should not interfere writeline text", ctx =>
{
ctx.Refresh();
console.WriteLine("x".Repeat(console.Profile.Width + 10), new Style(foreground: Color.White));
});

// Then
return Verifier.Verify(console.Output);
}
}