mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
Cli\Screen: fix tput for rows (it's lines)
This commit is contained in:
parent
747efdd3fa
commit
94690f4fda
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user