Documentation
¶
Overview ¶
Package term opens commands in a new terminal window/tab across macOS (iTerm or Terminal.app), WSL (Windows Terminal or cmd.exe), and Linux ($TERMINAL or a list of known emulators), and reports whether a writer is attached to a TTY.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶ added in v0.1.6
IsTerminal reports whether w is attached to a terminal.
It accepts any writer exposing an Fd method, not just *os.File, so callers can substitute fakes in tests. Writers without a file descriptor are never considered terminals.
Types ¶
This section is empty.