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…
Reference in New Issue