RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Shiny (0.1.1) common ansi escape sequences for the terminal

Shiny is a little gem which extend the ruby string class with some nice ansi escape sequences for colors and other effects like underline, bold or blinking. Shiny takes an other approche, instead to define a bunch of new methods for the string class, it serves just a proxy method called ‘shell’ to deliver all the ansi escape methods.

Comments

Very similar to ANSI gem. In fact I considered the vary same notation for ANSI, but I decided to use symbols for better speed and flexibility. e.g.

  "example".ansi(:red, :on_green)

You’re definitely right, actually ansi and a few other gems do the job also better. But i liked to push my first gem. ;)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in