buildkite / terminal-to-html

Converts arbitrary shell output (with ANSI) into beautifully rendered HTML
http://buildkite.github.io/terminal-to-html
MIT License
649 stars 45 forks source link

Allow to print links #29

Closed byroot closed 8 years ago

byroot commented 9 years ago

SInce we can include images, I suppose links should not be too difficult.

Proposed syntax:

printf '\033]1337;url='"$1"';content='"$2"'\a\n'

The use case would be to enrich test failure backtraces so that each line is a link to the file on GitHub.

toolmantim commented 9 years ago

This is a great idea… we should absolutely support this! Stay tuned.

mipearson commented 8 years ago

I have a working prototype for this, but it's highlighted that I really need to clean up the image handling code.

Format is 1339;url=http://www.google.com;content=Google Search

mipearson commented 8 years ago

https://github.com/buildkite/terminal/pull/30

@toolmantim @keithpitt does this syntax work for you?

keithpitt commented 8 years ago

Looks legit to me! Nothing is jumping out at me as being wrong with it.

toolmantim commented 8 years ago

Nice!! :+1: on the syntax

toolmantim commented 8 years ago

Shipped in #30