Replace command history padding '#' with spaces in console output

This commit is contained in:
Stone_Red
2026-06-11 21:33:15 +02:00
parent 0968d64fa3
commit f15784160d
+2 -2
View File
@@ -64,7 +64,7 @@ internal class CliProcess() : Process("Cli")
{
historyIndex = Math.Max(historyIndex - 1, 0);
currentInput = CommandManager.GetCommandHistory()[historyIndex];
Console.Write("\r> " + currentInput + new string('#', Console.WindowWidth - currentInput.Length - 2));
Console.Write("\r> " + currentInput + new string(' ', Console.WindowWidth - currentInput.Length - 2));
Console.CursorLeft = 0;
Console.CursorTop--;
Console.Write("> " + currentInput);
@@ -75,7 +75,7 @@ internal class CliProcess() : Process("Cli")
{
historyIndex = Math.Min(historyIndex + 1, CommandManager.GetCommandHistory().Count - 1);
currentInput = CommandManager.GetCommandHistory()[historyIndex];
Console.Write("\r> " + currentInput + new string('#', Console.WindowWidth - currentInput.Length - 2));
Console.Write("\r> " + currentInput + new string(' ', Console.WindowWidth - currentInput.Length - 2));
Console.CursorLeft = 0;
Console.CursorTop--;
Console.Write("> " + currentInput);