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 {
ConsoleKeyInfo keyInfo = Console.ReadKey(true);
if (keyInfo.Key != ConsoleKey.C) {
continue;
switch (keyInfo.Key) {
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();