aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/tty.rb
AgeCommit message (Collapse)Author
2018-02-12Tty: if HOMEBREW_NO_COLOR env var is present, disable colorjoshua stein
bin/brew will recognize NO_COLOR variable and copy it to HOMEBREW_NO_COLOR
2017-06-07tty: handle non-tty stdin.Mike McQuaid
When stdin is not a tty then the message `stty: stdin isn't a terminal` will be produced. Silence this message and fall back to `tput` when it fails and default to 80 if we get no results at all. Follow-up from #2714.
2017-06-02Use stty instead of tput to get terminal widthEnrico Ghirardi
Fixes https://github.com/Homebrew/brew/issues/2707
2016-10-01Refactor Tty.Markus Reiter