All Projects → piotrmurach → tty-link

piotrmurach / tty-link

Licence: MIT license
Hyperlinks in your terminal

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to tty-link

CLIp
CLIp is a clipboard manager for a command line interface written in 100% standard C only. Pipe to it to copy, pipe from it to paste.
Stars: ✭ 12 (-60%)
Mutual labels:  tty, tty-components
tty-editor
Opens a file or text in the user's preferred editor
Stars: ✭ 26 (-13.33%)
Mutual labels:  tty, tty-components
Tty Font
Terminal fonts
Stars: ✭ 44 (+46.67%)
Mutual labels:  rubygem, tty
tty-tree
Print directory or structured data in a tree like format
Stars: ✭ 54 (+80%)
Mutual labels:  tty, tty-components
Tty Markdown
Convert a markdown document or text into a terminal friendly output.
Stars: ✭ 275 (+816.67%)
Mutual labels:  rubygem, tty
Tty Progressbar
Display a single or multiple progress bars in the terminal.
Stars: ✭ 377 (+1156.67%)
Mutual labels:  rubygem, tty
Tty Exit
Terminal exit codes.
Stars: ✭ 101 (+236.67%)
Mutual labels:  rubygem, tty
Dry Cli
General purpose Command Line Interface (CLI) framework for Ruby
Stars: ✭ 210 (+600%)
Mutual labels:  rubygem
oanda api
A ruby client for the Oanda REST API.
Stars: ✭ 35 (+16.67%)
Mutual labels:  rubygem
Rom Sql
SQL support for rom-rb
Stars: ✭ 169 (+463.33%)
Mutual labels:  rubygem
Acts as favoritor
Adds Favorite, Follow, Vote, etc. functionality to ActiveRecord models
Stars: ✭ 165 (+450%)
Mutual labels:  rubygem
Api Fuzzer
API Fuzzer which allows to fuzz request attributes using common pentesting techniques and lists vulnerabilities
Stars: ✭ 238 (+693.33%)
Mutual labels:  rubygem
godot-xterm
Terminal emulator for the Godot game engine.
Stars: ✭ 61 (+103.33%)
Mutual labels:  tty
Zold
An Experimental Non-Blockchain Cryptocurrency for Fast Micro Payments
Stars: ✭ 183 (+510%)
Mutual labels:  rubygem
rarbg
Ruby client for the RARBG Torrent API.
Stars: ✭ 17 (-43.33%)
Mutual labels:  rubygem
Asciidoctor Epub3
📘 Asciidoctor EPUB3 is a set of Asciidoctor extensions for converting AsciiDoc to EPUB3 & KF8/MOBI
Stars: ✭ 166 (+453.33%)
Mutual labels:  rubygem
cfg
my dotfiles
Stars: ✭ 26 (-13.33%)
Mutual labels:  tty
ploot
Plot streaming data from stdin to a tty terminal
Stars: ✭ 54 (+80%)
Mutual labels:  tty
tallboy
Declarative API for drawing unicode/ascii character tables in crystal lang
Stars: ✭ 49 (+63.33%)
Mutual labels:  tty
tty-platform
Operating system detection
Stars: ✭ 28 (-6.67%)
Mutual labels:  tty
tty logo

TTY::Link Gitter

Gem Version Actions CI Build status Maintainability Coverage Status Inline docs

Hyperlinks in your terminal

TTY::Link allows you to test whether a terminal supports hyperlinks and print them to the console. It is a component in TTY toolkit

Terminal emulators such as iTerm2 or GNOME, XFCE that use VTE widget support web style hyperlinks via Ctrl+click or Cmd+click.

Installation

Add this line to your application's Gemfile:

gem 'tty-link'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tty-link

Usage

To print hyperlink in your terminal do:

puts TTY::Link.link_to("TTY toolkit", "https://ttytoolkit.org")
# =>
# TTY toolkit

In cases when the terminal cannot support hyperlinks, an alternative is printed:

# TTY toolkit -> https://ttytoolkit.org

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/piotrmurach/tty-link. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the TTY::Link project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Copyright

Copyright (c) 2019 Piotr Murach. See LICENSE for further details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].