Fix AnsiConsoleOutput safe height

The safe height (introduced in 3e2eea730bf0f6fe4a5e336faa312b526d351079) would be 80 (the value of the safe width) instead of 24.

Removing the explicit `defaultValue` parameter ensures that the correct constants are used, i.e. Constants.DefaultTerminalWidth and Constants.DefaultTerminalHeight.
This commit is contained in:
Cédric Luthi 2023-11-09 11:48:42 +01:00 committed by Patrik Svensson
parent 63b940cf0e
commit 29a43686d4

View File

@ -28,10 +28,10 @@ public sealed class AnsiConsoleOutput : IAnsiConsoleOutput
}
/// <inheritdoc/>
public int Width => ConsoleHelper.GetSafeWidth(Constants.DefaultTerminalWidth);
public int Width => ConsoleHelper.GetSafeWidth();
/// <inheritdoc/>
public int Height => ConsoleHelper.GetSafeHeight(Constants.DefaultTerminalWidth);
public int Height => ConsoleHelper.GetSafeHeight();
/// <summary>
/// Initializes a new instance of the <see cref="AnsiConsoleOutput"/> class.