Support for unlimited number of lines of output in text mode - Roman Hoog Antink <rha@open.ch>

This commit is contained in:
Paul Warren
2017-01-05 21:23:57 +00:00
parent 3fae1acf14
commit 53e1150f66
2 changed files with 4 additions and 1 deletions

2
tui.c
View File

@@ -73,7 +73,7 @@ void tui_print() {
printf("\n");
/* Traverse the list of all connections */
while((nn = sorted_list_next_item(&screen_list, nn)) != NULL && l < options.num_lines) {
while((nn = sorted_list_next_item(&screen_list, nn)) != NULL && (!options.num_lines || l < options.num_lines)) {
/* Increment the line counter */
l++;