Class: Tty
- Inherits:
-
Object
- Object
- Tty
- Defined in:
- lib/git_bpf/lib/git-helpers.rb
Overview
From homebrew (raw.github.com/mxcl/homebrew/go).
Class Method Summary collapse
- .blue ⇒ Object
- .em ⇒ Object
- .gray ⇒ Object
- .green ⇒ Object
- .red ⇒ Object
- .reset ⇒ Object
- .white ⇒ Object
- .width ⇒ Object
- .yellow ⇒ Object
Class Method Details
.blue ⇒ Object
6 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 6 def blue; bold 34; end |
.em ⇒ Object
11 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 11 def em; underline 39; end |
.gray ⇒ Object
13 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 13 def gray; bold 30 end |
.green ⇒ Object
12 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 12 def green; color 92 end |
.red ⇒ Object
8 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 8 def red; underline 31; end |
.reset ⇒ Object
10 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 10 def reset; escape 0; end |
.white ⇒ Object
7 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 7 def white; bold 39; end |
.width ⇒ Object
15 16 17 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 15 def width `/usr/bin/tput cols`.strip.to_i end |
.yellow ⇒ Object
9 |
# File 'lib/git_bpf/lib/git-helpers.rb', line 9 def yellow; underline 33 ; end |