1

I am using the .net standard development console application, how would I do detect if the stdin is a terminal or pipe. So that I can optimize the interaction.

Functions similar to functions provided by isatty

candycat
  • 435
  • 4
  • 13
  • 1
    Can this help? https://learn.microsoft.com/en-us/dotnet/api/system.console.isinputredirected?view=netframework-4.8#System_Console_IsInputRedirected – ZorgoZ Oct 08 '19 at 10:52
  • You can try if this works: https://stackoverflow.com/a/12527552/1220550 – Peter B Oct 08 '19 at 10:55
  • @ZorgoZ used IsInputRedirected, and it looks like there is no problem for the time being. thanks. – candycat Oct 09 '19 at 01:43

0 Answers0