spotty

package
v1.0.5-7-windows Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: BSD-3-Clause, BSD-3-Clause Imports: 5 Imported by: 0

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 an 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