We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3df91f1 + f917a03 commit beaa41cCopy full SHA for beaa41c
src/CliMenu.php
@@ -316,9 +316,6 @@ private function assertOpen() : void
316
*/
317
protected function draw() : void
318
{
319
- $this->terminal->clean();
320
- $this->terminal->moveCursorToTop();
321
-
322
$frame = new Frame;
323
324
$frame->newLine(2);
@@ -336,10 +333,15 @@ protected function draw() : void
336
333
$frame->addRows($this->drawMenuItem(new LineBreakItem()));
337
334
338
335
339
+
+ $this->terminal->moveCursorToTop();
340
foreach ($frame->getRows() as $row) {
+ if ($row == "\n") {
+ $this->terminal->write("\033[2K");
341
+ }
342
$this->terminal->write($row);
343
}
344
+ $this->terminal->write("\033[J");
345
346
$this->currentFrame = $frame;
347
0 commit comments