spotty

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover() (string, error)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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