isatty

command
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

README

Test program for IsTerminal() in package github.com/pebbe/util

This is how it should work (on linux):

~ go get github.com/pebbe/util 
~ go get github.com/pebbe/util/isatty 
~ isatty 
stdin:  true 
stdout: true 
stderr: true 
~ isatty | cat 
stdin:  true 
stdout: false 
stderr: true 
~ isatty 2> /dev/null 
stdin:  true 
stdout: true 
stderr: false 
~ isatty < ~/.bashrc 
stdin:  false 
stdout: true 
stderr: true 
~ echo | isatty 
stdin:  false 
stdout: true 
stderr: true

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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