ttysize: if stdin is not tty, try stdout, then stderr
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Jul 2017 18:36:48 +0000 (20:36 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Jul 2017 18:36:48 +0000 (20:36 +0200)
commit68e980545af6a8ffb2980f94a6edac4dd89940f3
tree821d730e4fcbe52666d4f43ae34f81681c395a5a
parentb24e55da84093dd6bf6dff79627e32459c3da071
ttysize: if stdin is not tty, try stdout, then stderr

function                                             old     new   delta
ttysize_main                                         135     175     +40
packed_usage                                       31686   31672     -14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/ttysize.c