tty

package
v7.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package tty opens the controlling terminal for use as a subprocess's stdin/stderr. This lets interactive prompts (e.g. "Touch your YubiKey...") reach the user even when aws-vault is run as a credential_process subprocess whose stdin/stderr are piped by the parent (aws CLI, kubectl, docker, etc.).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open() (in, out *os.File, cleanup func())

Open returns file handles suitable for use as a subprocess's stdin and stderr. On unix, both handles are the same /dev/tty fd opened read-write. Callers must defer cleanup() unconditionally. Either or both of in/out may be nil if no controlling terminal is available (headless CI, daemonized process); callers should fall back to inherited descriptors in that case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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