From 94690f4fdafdcae07de666abd53c6aa413989623 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 16 Nov 2015 18:50:48 +0100 Subject: [PATCH] Cli\Screen: fix tput for rows (it's lines) --- library/Icinga/Cli/Screen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Cli/Screen.php b/library/Icinga/Cli/Screen.php index 2737583c4..555595644 100644 --- a/library/Icinga/Cli/Screen.php +++ b/library/Icinga/Cli/Screen.php @@ -29,7 +29,7 @@ class Screen $rows = (int) getenv('ROWS'); if (! $rows) { // stty -a ? - $rows = (int) exec('tput rows'); + $rows = (int) exec('tput lines'); } if (! $rows) { $rows = 25;