]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/ttyutils: use stdout for get_terminal_width()
authorKarel Zak <kzak@redhat.com>
Thu, 2 Jun 2016 10:31:45 +0000 (12:31 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Jun 2016 10:31:45 +0000 (12:31 +0200)
commit8f0ac5792191499292a2d23c8ebd743695af70b7
tree0f4d515176e0376e9a71fd897d52706ddf740c71
parentb1fd64eb793b49c3b12d6bdd61f3c2bc67796175
lib/ttyutils: use stdout for get_terminal_width()

We use the function to be sure with *output* width. Note that the
current code (with STDIN) is broken because in some situations
libsmartcols is not able to detect terminal width and fall back to
default 80.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/ttyutils.c
libsmartcols/src/table_print.c