Code Monkey home page Code Monkey logo

aha's Introduction

aha - Ansi HTML Adapter

Converts ANSI escape sequences of a unix terminal to HTML code.

aha screenshot

Examples

  • aha --help | aha --black --title "the awesome aha help"> aha-help.htm
    • Creates an HTML file of the help of aha with black background
  • colordiff oldfile.c newfile.c | aha > colordiff.htm
    • Creates an HTML file with a colorful diff-output of two files "oldfile.c" and "newfile.c" with white background
  • ls --color=always | aha --pink > ls.htm
  • Creates an HTML file with a colorful ls-output with pink background.
  • echo q | htop | aha --black --line-fix > htop.htm
    • Creates an HTML file with the output of htop. You have to use --line-fix due the other new-line-commands htop uses.
  • MAN_KEEP_FORMATTING=1 COLUMNS=80 man aha | ul | aha > man-aha.htm
    • Creates an HTML file with the man page of aha. Man uses nroff's bold and underline, which ul converts to SGR.

Compilation / Installation

Aha has no dependencies except for a C compiler and make.

To compile just type make. To install aha to /usr/local/ type make install. You can change the installation directory with make install PREFIX=/your/path. You can override the man directory with make install MANDIR=/your/path/man

Licensing

All files are subjects to the LGPL2+ or the MPL1.1 (Dual licensed).

aha's People

Contributors

andrewkvalheim avatar eddieantonio avatar jwilk avatar krytarowski avatar richq avatar suve avatar theziz avatar trombonehero avatar twopir avatar xtaran avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.