term

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package term detects terminals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal(v any) bool

IsTerminal reports whether v is a file connected to a terminal.

func ReadPassword

func ReadPassword(in any, out interface{ Write([]byte) (int, error) }, prompt string) (string, error)

ReadPassword reads a line from the terminal in, without echo. It writes prompt to out first, and a newline after the answer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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