This commit is contained in:
Archi
2023-10-21 22:42:11 +02:00
parent f3ef7d0397
commit 502af043df

View File

@@ -355,8 +355,16 @@ internal static class Logging {
try { try {
ConsoleKeyInfo keyInfo = Console.ReadKey(true); ConsoleKeyInfo keyInfo = Console.ReadKey(true);
if (keyInfo.Key != ConsoleKey.C) { switch (keyInfo.Key) {
continue; case 0:
// Linux terminal closing STDIN, we're done here
return;
case ConsoleKey.C:
// User hitting 'c', as expected
break;
default:
// Any other input, ignored
continue;
} }
OnUserInputStart(); OnUserInputStart();