github.com/qri-io/qri@v0.10.1-0.20220104210721-c771715036cb/cmd/system_windows.go (about)

     1  package cmd
     2  
     3  // ensureLargeNumOpenFiles doesn't need to do anything on Windows
     4  func ensureLargeNumOpenFiles() {
     5  	// Nothing to do.
     6  }
     7  
     8  // stdoutIsTerminal returns true on Windows, because we just assume that no Windows
     9  // user is trying to use pipes
    10  func stdoutIsTerminal() bool {
    11  	return true
    12  }
    13  
    14  // defaultFilePermMask is 0 because Windows does not use Unix-style file permissions
    15  func defaultFilePermMask() int {
    16  	return 0
    17  }
    18  
    19  // sizeOfTerminal returns an invalid size on Windows
    20  func sizeOfTerminal() (int, int) {
    21  	return -1, -1
    22  }