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.
1 parent 4c883fb commit ea93141Copy full SHA for ea93141
src/CliMenu.php
@@ -252,9 +252,6 @@ private function assertOpen() : void
252
*/
253
protected function draw() : void
254
{
255
- $this->terminal->clean();
256
- $this->terminal->moveCursorToTop();
257
-
258
$frame = new Frame;
259
260
$frame->newLine(2);
@@ -272,10 +269,12 @@ protected function draw() : void
272
269
$frame->addRows($this->drawMenuItem(new LineBreakItem()));
273
270
274
271
275
+
+ $this->terminal->moveCursorToTop();
276
foreach ($frame->getRows() as $row) {
277
- $this->terminal->write($row);
+ $this->terminal->write("\033[1E" . rtrim($row, "\r\n"));
278
}
+ $this->terminal->write("\033[1E\033[J");
279
280
$this->currentFrame = $frame;
281
0 commit comments