Git Product home page Git Product logo

ansi2html's Introduction

ansi2html

You have class. You are a hipster. You ride a fixie bike to work and you are member of a Scotch Whisky club. When using a computer, you prefer minimalistic command line applications that output ANSI colours in your terminal that you have configured to have semi-transparent background with Frank Zappa background music and vim-like shortcuts that differentiates you from the common programmers. You are a big fish in a small pond.

Your friends are not geeks like you, they have more important goals in their lives, but they admire you for being so smart, because you can write computer programs. Programs with ANSI colours even. And yet, they don't know how to use a terminal.

You need a way to show your entourage the true power of ANSI colours. -A way that works with the iPad.

You will just

gem install ansi2html
curl github.com/aslakhellesoy/ansi2html/raw/master/examples/summering_feil.txt | ansi2html --envelope > summering_feil.html
open summering_feil.html

OMG you have a LINUX machine so you will do {TODO WTF is the equivalent of open in LINUX} to open the file. ZOMFG you have WINDOWS. You'll figure out what to do. It works the same as a .htm file.

HTML designers have a special option. Don't use –envelope. This will give you HTML with Scandinavian design instead. Just pump input in and stick the output in your new fancy <article> and <section> fancy page with CSS3 yo. (It will explode if you have rounded corners). Nobody does that anymore. Please.

Let's tweet #ansi2html with links to pages that have ANSI in HTML now, ok? (I would, but my home page is under construction, besides I don't promote my own art because I am an artist).

HALP

Send me a pull request if you fixed something. This will get you started (after you install ruby):

gem install bundler && bundle install && rspec spec

ansi2html's People

Contributors

aslakhellesoy avatar bobes avatar foobarwidget avatar toy 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.