Class: Tty

Inherits:
Object
  • Object
show all
Defined in:
lib/git_bpf/lib/git-helpers.rb

Overview

Class Method Summary collapse

Class Method Details

.blueObject



6
# File 'lib/git_bpf/lib/git-helpers.rb', line 6

def blue; bold 34; end

.emObject



11
# File 'lib/git_bpf/lib/git-helpers.rb', line 11

def em; underline 39; end

.grayObject



13
# File 'lib/git_bpf/lib/git-helpers.rb', line 13

def gray; bold 30 end

.greenObject



12
# File 'lib/git_bpf/lib/git-helpers.rb', line 12

def green; color 92 end

.redObject



8
# File 'lib/git_bpf/lib/git-helpers.rb', line 8

def red; underline 31; end

.resetObject



10
# File 'lib/git_bpf/lib/git-helpers.rb', line 10

def reset; escape 0; end

.whiteObject



7
# File 'lib/git_bpf/lib/git-helpers.rb', line 7

def white; bold 39; end

.widthObject



15
16
17
# File 'lib/git_bpf/lib/git-helpers.rb', line 15

def width
  `/usr/bin/tput cols`.strip.to_i
end

.yellowObject



9
# File 'lib/git_bpf/lib/git-helpers.rb', line 9

def yellow; underline 33 ; end