gotty

package module
v0.0.0-...-8477ad0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gotty implements functions to detect that a Go application is running inside a terminal.

Package gotty implements functions to detect that a Go application is running inside a terminal.

Index

Constants

This section is empty.

Variables

View Source
var Stdout osFileWrapper = osFile{/* contains filtered or unexported fields */}

Wraps Stdout.

Functions

func IsTTY

func IsTTY() bool

IsTTY returns true if Stdout is attached to a terminal window, false otherwise.

Types

type FsFileInfoWrapper

type FsFileInfoWrapper interface {
	// Returns the file's mode.
	Mode() fs.FileMode
}

A subset of Go's standard fs.FileInfo interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL