Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aslakhellesoy/ansi2html
Convert ANSI escape sequences to styleable HTML markup
https://github.com/aslakhellesoy/ansi2html
Last synced: about 1 month ago
JSON representation
Convert ANSI escape sequences to styleable HTML markup
- Host: GitHub
- URL: https://github.com/aslakhellesoy/ansi2html
- Owner: aslakhellesoy
- License: wtfpl
- Created: 2011-01-04T06:48:46.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2019-05-09T07:08:13.000Z (over 5 years ago)
- Last Synced: 2024-04-14T15:13:25.291Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 709 KB
- Stars: 31
- Watchers: 2
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.rdoc
- Changelog: History.txt
- License: COPYING
Awesome Lists containing this project
README
= 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.htmlOMG 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 and 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