Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for isTerminal (0.18 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. src/cmd/vendor/golang.org/x/term/term_plan9.go

    // license that can be found in the LICENSE file.
    
    package term
    
    import (
    	"fmt"
    	"runtime"
    
    	"golang.org/x/sys/plan9"
    )
    
    type state struct{}
    
    func isTerminal(fd int) bool {
    	path, err := plan9.Fd2path(fd)
    	if err != nil {
    		return false
    	}
    	return path == "/dev/cons" || path == "/mnt/term/dev/cons"
    }
    
    func makeRaw(fd int) (*State, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/vendor/golang.org/x/term/term_windows.go

    // license that can be found in the LICENSE file.
    
    package term
    
    import (
    	"os"
    
    	"golang.org/x/sys/windows"
    )
    
    type state struct {
    	mode uint32
    }
    
    func isTerminal(fd int) bool {
    	var st uint32
    	err := windows.GetConsoleMode(windows.Handle(fd), &st)
    	return err == nil
    }
    
    func makeRaw(fd int) (*State, error) {
    	var st uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/options.go

    }
    
    func (ui *stdUI) Print(args ...interface{}) {
    	ui.fprint(os.Stderr, args)
    }
    
    func (ui *stdUI) PrintErr(args ...interface{}) {
    	ui.fprint(os.Stderr, args)
    }
    
    func (ui *stdUI) IsTerminal() bool {
    	return false
    }
    
    func (ui *stdUI) WantBrowser() bool {
    	return true
    }
    
    func (ui *stdUI) SetAutoComplete(func(string) string) {
    }
    
    func (ui *stdUI) fprint(f *os.File, args []interface{}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 07 12:27:21 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top