## Lesson — Always verify that both stdin and stdout are TTY-enabled

**Tags:** cli, ux

Always verify that both stdin and stdout are TTY-enabled before launching interactive prompts to prevent crashes or hanging in non-interactive environments.
