Remove hard-coded 80 column output
authorCraig Sanders <github@taz.net.au>
Tue, 27 Mar 2012 10:37:41 +0000 (21:37 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Mar 2012 22:01:08 +0000 (15:01 -0700)
commit9fc60702c6679803c77939db732c294b6b6952d2
treeedb78d70f78ff307661e2f5d55668dabf5378d9b
parent2008ab88dd19ae3947b30b4e933fbf2273300aa2
Remove hard-coded 80 column output

When stdout is detected to be a tty use the number of columns
specified by the terminal.  If that fails fall back to a default
80 column width.  In the non-tty case allow for 999 column lines.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/zpool/zpool_main.c