Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for isTerminal (0.17 sec)

  1. src/cmd/vendor/golang.org/x/term/term_unsupported.go

    //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9
    
    package term
    
    import (
    	"fmt"
    	"runtime"
    )
    
    type state struct{}
    
    func isTerminal(fd int) bool {
    	return false
    }
    
    func makeRaw(fd int) (*State, error) {
    	return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/testFixtures/groovy/org/gradle/testing/fixture/MultiJvmTestCompatibility.groovy

         */
        static final String CONSOLE_CHECK = JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_22)
            ? "assertFalse(System.console().isTerminal());"
            : "assertNull(System.console());"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java

            } finally {
                lock.unlock();
            }
    
            ExecResultImpl newResult = new ExecResultImpl(exitValue, execExceptionFor(failureCause, currentState), displayName);
            if (!currentState.isTerminal() && newState != ExecHandleState.DETACHED) {
                try {
                    broadcast.getSource().executionFinished(this, newResult);
                } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. pkg/api/v1/pod/util_test.go

    			expected: false,
    		},
    	}
    
    	for i, test := range tests {
    		pod := newPod(now, true, 0)
    		pod.Status.Phase = test.podPhase
    		isTerminal := IsPodTerminal(pod)
    		if isTerminal != test.expected {
    			t.Errorf("[tc #%d] expected terminal pod: %t, got: %t", i, test.expected, isTerminal)
    		}
    	}
    }
    
    func TestGetContainerStatus(t *testing.T) {
    	type ExpectedStruct struct {
    		status v1.ContainerStatus
    		exists bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
Back to top