diff options
author | Jim Pryor <profjim@jimpryor.net> | 2009-08-14 13:07:31 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-24 14:36:16 -0700 |
commit | c3276e250c88173f36ddd50bc6a6c4feeb7409cb (patch) | |
tree | 04a9232462a66f761d1219621bbeb19b6e8b72a8 /rc.multi | |
parent | 65f4102d48726afa4324d789551e7a74c806a590 (diff) | |
download | initscripts-c3276e250c88173f36ddd50bc6a6c4feeb7409cb.tar.xz |
Fix stty/tput usage for columns again
Cleans up double application of earlier fixes for this issue.
Instead of calling $(tput cols 2>/dev/null), we now try tput cols
silently to see whether it complains. If not, then we call $(tput cols)
with no redirection of stderr. This way, we can get results other than
80.
eliminate color when stdout is not terminal
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'rc.multi')
0 files changed, 0 insertions, 0 deletions