mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +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();
|
$screen = Screen::instance();
|
||||||
while (true) {
|
while (true) {
|
||||||
Benchmark::measure('Watch mode - loop begins');
|
Benchmark::measure('Watch mode - loop begins');
|
||||||
|
ob_start();
|
||||||
echo $screen->clear();
|
echo $screen->clear();
|
||||||
$params = clone($this->params);
|
$params = clone($this->params);
|
||||||
$loader->dispatch();
|
$loader->dispatch();
|
||||||
@ -159,6 +160,9 @@ class Cli extends ApplicationBootstrap
|
|||||||
Benchmark::dump();
|
Benchmark::dump();
|
||||||
}
|
}
|
||||||
Benchmark::reset();
|
Benchmark::reset();
|
||||||
|
$out = ob_get_contents();
|
||||||
|
ob_end_clean();
|
||||||
|
echo $screen->clear() . $out;
|
||||||
$this->params = $params;
|
$this->params = $params;
|
||||||
sleep($this->watchTimeout);
|
sleep($this->watchTimeout);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user