faketty
« Back to VersTracker
Description:
Wrapper to exec a command in a pty, even if redirecting the output
Type: Formula  |  Latest Version: 1.0.19@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli pty terminal rust utility
Install: brew install faketty
About:
Faketty is a command-line wrapper that executes a subprocess within a pseudo-terminal (PTY), preserving interactive behavior even when stdout or stderr are redirected. This ensures that programs like `ls`, `grep`, or package managers produce colorized output and behave as if attached to a real terminal. It is a lightweight utility written in Rust, designed for reliability and cross-platform compatibility.
Key Features:
  • Preserves interactive program behavior and TTY features
  • Forces colorized output even when piping or redirecting
  • Written in Rust for performance and safety
  • Simple, single-binary CLI tool
Use Cases:
  • Capturing colorized output from tools like `ls` or `grep` into a log file
  • Forcing interactive prompts in scripts that would otherwise disable them
  • Debugging build systems or CI pipelines that redirect output
Alternatives:
  • script – Standard Unix tool for emulating a terminal, but less convenient for simple command wrapping
  • unbuffer (expect) – Part of the Expect suite; heavier dependency and less modern than faketty
License: Apache-2.0 OR MIT
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit