pstree: use stdin for screen size detection

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2010-12-06 12:54:24 +01:00
parent 31905f9477
commit 86aa803047

View File

@ -373,7 +373,7 @@ int pstree_main(int argc UNUSED_PARAM, char **argv)
INIT_G();
get_terminal_width_height(1, &G.output_width, NULL);
get_terminal_width_height(0, &G.output_width, NULL);
opt_complementary = "?1";
getopt32(argv, "p");