mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Closes #3051
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user