termx

package
v0.0.0-...-e008491 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsColor

func IsColor(w io.Writer) bool

IsColor returns whether color should be enabled. It will only return true when:

  • The NO_COLOR env is empty or unset
  • The TERM env does not equal "dumb"
  • The given io.Writer is a terminal

func IsTerminal

func IsTerminal(v any) bool

IsTerminal returns whether the given io.Writer is a terminal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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