Discover Packages
github.com/keycase/client-fork
go
spotty
package
Version:
v2.5.2+incompatible
Opens a new window with list of versions in this module.
Published: Sep 6, 2018
License: BSD-3-Clause, BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
spotty
This is a port of keybase/node-spotty ,
a mechanism to read the current TTY that should work on both Linux and OSX.
THIS MODULE CANNOT BE TESTED!
Or at least, not with Go's test framework, because Go test
closes /dev/tty .
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
Discover which named TTY we have open as FD=0. Will return empty string if nothing
was found, and a non-nil error if there was a problem. Will noop on Windows.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.