pipewire/src/tools
Barnabás Pőcze c12e9a745d pw-top: only check terminal size in non-batch mode
If ncurses is not initialized, then the global `LINES` variable stays 0.
This will cause problems because there is an unconditional `if (y > LINES)`
check when printing the driven nodes for a given driver node, resulting
in only the first one being printed.

Commit 71653e04d2 ("pw-top: add 'batch-mode' and iterations known from top")
that introduced batch mode missed this one condition, so fix that
by only checking the for terminal overflow in non-batch mode as
it is done a couple lines above.

Fixes #3899
2024-03-07 17:17:35 +00:00
..
dfffile.c pw-cat: add DFF file suppport 2023-10-02 16:51:37 +02:00
dfffile.h pw-cat: add DFF file suppport 2023-10-02 16:51:37 +02:00
dsffile.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
dsffile.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
meson.build pw-cat: add DFF file suppport 2023-10-02 16:51:37 +02:00
midifile.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
midifile.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
pw-cat.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-cli.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-config.c logger: minor performance improvement to avoid syscall done by isatty 2024-02-17 11:42:12 +00:00
pw-dot.c pw-dot: group nodes by node.link-group 2024-02-13 16:38:48 +00:00
pw-dump.c logger: minor performance improvement to avoid syscall done by isatty 2024-02-17 11:42:12 +00:00
pw-link.c pw-link: do argument check before sync 2024-02-27 08:32:56 +00:00
pw-loopback.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-metadata.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-mididump.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-mon.c logger: minor performance improvement to avoid syscall done by isatty 2024-02-17 11:42:12 +00:00
pw-profiler.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-reserve.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-top.c pw-top: only check terminal size in non-batch mode 2024-03-07 17:17:35 +00:00
reserve.c pw-reserve: fix potential DBusMessage memory leak 2024-01-08 10:55:02 +00:00
reserve.h pw-reserve: require valid name + check rd_reserve_new errors 2023-11-28 10:26:43 +00:00