diff options
| author | Enrico Ghirardi | 2017-06-01 12:33:58 +0200 |
|---|---|---|
| committer | Enrico Ghirardi | 2017-06-02 17:00:52 +0200 |
| commit | a9c83f14a749f6295daafc31440d0f74d1aa27e0 (patch) | |
| tree | fea97a0801984534bf2f1ffdf23164f95c9f6df1 /Library/Homebrew | |
| parent | 63b2eb9ffd1a0131194e99c65e3f0e1e1980ed9b (diff) | |
| download | brew-a9c83f14a749f6295daafc31440d0f74d1aa27e0.tar.bz2 | |
Use stty instead of tput to get terminal width
Fixes https://github.com/Homebrew/brew/issues/2707
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils/tty.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/tty.rb b/Library/Homebrew/utils/tty.rb index 505165dc5..642a33b91 100644 --- a/Library/Homebrew/utils/tty.rb +++ b/Library/Homebrew/utils/tty.rb @@ -6,7 +6,7 @@ module Tty end def width - `/usr/bin/tput cols`.strip.to_i + (`/bin/stty size`.split[1] || 80).to_i end def truncate(string) |
