Converts ANSI escape sequences from terminal output into HTML for colorful web display.
aha (Ansi HTML Adapter) is a command-line utility that converts ANSI escape sequences—used for colors and text formatting in Unix terminals—into HTML code. It solves the problem of losing terminal color information when sharing command outputs, logs, or diffs on the web by generating styled HTML that preserves the original formatting.
Developers and system administrators who work with terminal tools (e.g., diff, ls, htop) and need to share colorized output in web-friendly formats like HTML documents or reports.
Developers choose aha for its simplicity, zero dependencies, and seamless integration into Unix pipelines, allowing them to quickly generate HTML from any command output without complex setup or external libraries.
Ansi HTML Adapter
Built in C with only a compiler and make required, making it easy to compile and run on any system with minimal overhead, as highlighted in the README's compilation section.
Designed for Unix pipelines, allowing seamless integration with commands like `colordiff` or `ls --color` to directly generate HTML, as shown in the examples.
Supports command-line flags for setting custom background colors (e.g., --black, --pink), enabling tailored HTML displays for different use cases.
Includes a --line-fix flag to properly process newline characters from tools like htop, ensuring accurate HTML output in special scenarios.
Generates simple HTML with inline CSS only; lacks support for external stylesheets or advanced CSS features, limiting design flexibility for modern web integration.
For non-package-manager installations, users must compile from source, which can be a barrier for those without C development tools, despite the minimal dependencies.
Only converts standard ANSI escape sequences; other terminal formatting codes or proprietary extensions are not supported, restricting use with non-standard tools.
Ultimate Plumber is a tool for writing Linux pipes with instant live preview
Fabulously kill processes. Cross-platform.
Like IntelliSense, but for shells
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.