From 2f914c3a4e31679a6cf1dcb082d0a0bf0d96c851 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 11 Oct 2024 16:36:01 +0200 Subject: [PATCH] Clear command from terminal window once its been sent --- Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Program.cs b/Program.cs index 7a49d23..ef46d23 100644 --- a/Program.cs +++ b/Program.cs @@ -195,6 +195,9 @@ private static void ProcessUserInput() Console.Clear(); _ = Listener.WriteMessage(input); + + Console.CursorLeft = 0; + Console.Write(new string(' ', Console.BufferWidth - 1)); } break;