faketty

Execute commands in a pseudo-terminal even when output is redirected

brewmacoslinux
Try with needOr install directly
Source

About

Wrapper to exec a command in a pty, even if redirecting the output

Commands

faketty

Examples

Run a command with colored output even when piped to a file$ faketty npm test > test-output.log
Preserve terminal features like progress bars when redirecting$ faketty curl -# https://example.com/largefile.zip > file.zip
Execute an interactive script while capturing output$ faketty ./deploy.sh | tee deployment.log