Discover Packages
github.com/qbit/client
go
spotty
package
Version:
v2.7.3+incompatible
Opens a new window with list of versions in this module.
Published: Oct 5, 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.