Skip to content

Commit

Permalink
Add color example to demonstrate that colors are preserved in the out…
Browse files Browse the repository at this point in the history
…put in ref to issue #33
  • Loading branch information
piotrmurach committed Sep 22, 2017
1 parent 3973cc8 commit 6650c19
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/color.rb
@@ -0,0 +1,7 @@
# encoding: utf-8

require 'tty-command'

cmd = TTY::Command.new

cmd.run :echo, "\e[35mhello \e[34mworld\e[0m"

0 comments on commit 6650c19

Please sign in to comment.