Description
Helps test or automate programs whose output changes when stdout is connected to a terminal, for example colorized logs, progress bars, or interactive formatting. Developers and script authors use it to reproduce terminal behavior in controlled pipelines.
Forcing TTY behavior can change output and may break parsers that expect plain text. Use it deliberately in tests or scripts where terminal-style output is really needed.