module Gish::TerminalHelpers

Public Instance Methods

bold(message) click to toggle source
# File lib/gish/helpers/terminal_helpers.rb, line 8
def bold(message)
  "\033[1m#{message}\033[0m"
end
console_width() click to toggle source
# File lib/gish/helpers/terminal_helpers.rb, line 3
def console_width
  size = %x{stty size}
  size.split(' ').last
end
format_label(label) click to toggle source
# File lib/gish/helpers/terminal_helpers.rb, line 16
def format_label(label)
  "\033[30m\033[47m #{label} \033[0m"
end
underline(message) click to toggle source
# File lib/gish/helpers/terminal_helpers.rb, line 12
def underline(message)
  "\033[4m#{message}\033[0m"
end