We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f598f7f commit 502012eCopy full SHA for 502012e
src/Tools/dotnet-counters/CounterMonitor.cs
@@ -841,7 +841,7 @@ private Task<int> Start()
841
while(!_shouldExit.Task.Wait(250))
842
{
843
HandleBufferedEvents();
844
- if (Console.KeyAvailable)
+ if (!Console.IsInputRedirected && Console.KeyAvailable)
845
846
ConsoleKey cmd = Console.ReadKey(true).Key;
847
if (cmd == ConsoleKey.Q)
0 commit comments