• See Official website.

  • This script is used by the search.php file to convert ANSI colors to HTML colors in the Search Results in the IT documentation.

  • Note: Install the colorized-logs package that contains the ansi2html and ansi2txt commands.

1. Linux

1.1. Installation

  • See https://manpages.debian.org/jessie/kbtin/ansi2html.1.en.html.

  • Enter the following optional commands at a Command Line.

    # Installation.
    wget http://snapshot.debian.org/archive/debian-archive/20190328T105444Z/debian/pool/main/k/kbtin/kbtin_1.0.15-1.1_amd64.deb
    dpkg --contents kbtin_1.0.15-1.1_amd64.deb
    sudo dpkg -i kbtin_1.0.15-1.1_amd64.deb

1.2. Usage

ls -l --color=always | ansi2html > ls.html