pstree: use stdin for screen size detection
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
31905f9477
commit
86aa803047
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user