diff options
| author | Markus Reiter | 2016-08-26 16:04:47 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2016-10-01 20:00:49 +0200 | 
| commit | 6d8ee395fa5878282a1ce3975b632103448be042 (patch) | |
| tree | 557520df749494a6a58ee54a139d4238ad41380d /Library/Homebrew/cask/lib/hbc/utils.rb | |
| parent | 19e633f1900ea910c2a9db85dc7c7bea0825676d (diff) | |
| download | brew-6d8ee395fa5878282a1ce3975b632103448be042.tar.bz2 | |
Refactor Tty.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/utils.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/utils.rb | 11 | 
1 files changed, 3 insertions, 8 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index 9159544a6..c6a970fca 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -32,11 +32,6 @@ end  def odebug(title, *sput)    return unless Hbc.respond_to?(:debug)    return unless Hbc.debug - -  width = Tty.width * 4 - 6 -  if $stdout.tty? && title.to_s.length > width -    title = title.to_s[0, width - 3] + "..." -  end    puts "#{Tty.magenta}==>#{Tty.reset} #{Tty.white}#{title}#{Tty.reset}"    puts sput unless sput.empty?  end @@ -152,11 +147,11 @@ module Hbc        <<-EOS.undent          Most likely, this means you have an outdated version of Homebrew-Cask. Please run: -            #{Tty.green}#{UPDATE_CMD} +          #{Tty.green}#{UPDATE_CMD}#{Tty.reset} -        #{Tty.reset}If this doesn’t fix the problem, please report this bug: +        If this doesn’t fix the problem, please report this bug: -            #{Tty.em}#{ISSUES_URL}#{Tty.reset} +          #{Tty.underline}#{ISSUES_URL}#{Tty.reset}        EOS      end  | 
