Cli\Screen: fix tput for rows (it's lines)

This commit is contained in:
Thomas Gelf 2015-11-16 18:50:48 +01:00
parent 747efdd3fa
commit 94690f4fda

View File

@ -29,7 +29,7 @@ class Screen
$rows = (int) getenv('ROWS'); $rows = (int) getenv('ROWS');
if (! $rows) { if (! $rows) {
// stty -a ? // stty -a ?
$rows = (int) exec('tput rows'); $rows = (int) exec('tput lines');
} }
if (! $rows) { if (! $rows) {
$rows = 25; $rows = 25;