mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
Afoid flickering on CLI when using --watch
This commit is contained in:
parent
99cccac052
commit
89f6bedb10
@ -151,6 +151,7 @@ class Cli extends ApplicationBootstrap
|
||||
$screen = Screen::instance();
|
||||
while (true) {
|
||||
Benchmark::measure('Watch mode - loop begins');
|
||||
ob_start();
|
||||
echo $screen->clear();
|
||||
$params = clone($this->params);
|
||||
$loader->dispatch();
|
||||
@ -159,6 +160,9 @@ class Cli extends ApplicationBootstrap
|
||||
Benchmark::dump();
|
||||
}
|
||||
Benchmark::reset();
|
||||
$out = ob_get_contents();
|
||||
ob_end_clean();
|
||||
echo $screen->clear() . $out;
|
||||
$this->params = $params;
|
||||
sleep($this->watchTimeout);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user