tty: handle non-tty stdin.
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.
M
Mike McQuaid committed
2cf2c020ba04f57ac9e77712df6a25525744715b
Parent: b2995be