Discover Packages
github.com/schoppmp/keybase-client
go
spotty
package
Version:
v1.0.6-1
Opens a new window with list of versions in this module.
Published: Dec 11, 2015
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 an non-nil error if there was a problem. Will noop on Windows.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.