public static bool StandardHandleIsTty(Program program, NativeMethods.StandardHandleType handleType)
        {
            var standardHandle = NativeMethods.GetStdHandle(handleType);
            var handleFileType = NativeMethods.GetFileType(standardHandle);

            return(handleFileType == NativeMethods.FileType.Char);
        }
 internal bool StandardHandleIsTty(NativeMethods.StandardHandleType handleType)
 => _standardHandleIsTty(this, handleType);
示例#3
0
 private bool StandardHandleIsTty(NativeMethods.StandardHandleType handleType)
 => _standardHandleIsTty(this, handleType);