mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 00:56:19 +02:00
Replace command history padding '#' with spaces in console output
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user