Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for isTerminal (0.16 sec)

  1. cmd/server-startup-msg.go

    	apiEndpointStr := strings.TrimSpace(strings.Join(apiEndpoints, "  "))
    	// Colorize the message and print.
    	logger.Info(color.Blue("API: ") + color.Bold(fmt.Sprintf("%s ", apiEndpointStr)))
    	if color.IsTerminal() && (!globalServerCtxt.Anonymous && !globalServerCtxt.JSON && globalAPIConfig.permitRootAccess()) {
    		logger.Info(color.Blue("   RootUser: ") + color.Bold("%s ", cred.AccessKey))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/ExecHandleState.java

        FAILED(true),
        DETACHED(true),
        SUCCEEDED(true);
    
        private final boolean terminal;
    
        ExecHandleState(boolean terminal) {
            this.terminal = terminal;
        }
    
        public boolean isTerminal() {
            return terminal;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 1007 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/term/term_unix.go

    //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
    
    package term
    
    import (
    	"golang.org/x/sys/unix"
    )
    
    type state struct {
    	termios unix.Termios
    }
    
    func isTerminal(fd int) bool {
    	_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
    	return err == nil
    }
    
    func makeRaw(fd int) (*State, error) {
    	termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. istioctl/pkg/util/formatting/formatter.go

    	return "\033[0m"
    }
    
    func IstioctlColorDefault(writer io.Writer) bool {
    	if strings.EqualFold(termEnvVar.Get(), "dumb") {
    		return false
    	}
    
    	file, ok := writer.(*os.File)
    	if ok {
    		if !isatty.IsTerminal(file.Fd()) {
    			return false
    		}
    	}
    
    	return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 11 02:41:45 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    	// For line-based UI, PrintErr writes to standard error.
    	PrintErr(...interface{})
    
    	// IsTerminal returns whether the UI is known to be tied to an
    	// interactive terminal (as opposed to being redirected to a file).
    	IsTerminal() bool
    
    	// WantBrowser indicates whether a browser should be opened with the -http option.
    	WantBrowser() bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/driver/driver.go

    	// For line-based UI, PrintErr writes to standard error.
    	PrintErr(...interface{})
    
    	// IsTerminal returns whether the UI is known to be tied to an
    	// interactive terminal (as opposed to being redirected to a file).
    	IsTerminal() bool
    
    	// WantBrowser indicates whether browser should be opened with the -http option.
    	WantBrowser() bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top