command
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Feb 20, 2021
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.