KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/vendor/laravel/prompts/src/Concerns/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/jewelry-pos/vendor/laravel/prompts/src/Concerns/Erase.php


<?php

namespace Laravel\Prompts\Concerns;

trait Erase
{
    /**
     * Erase the given number of lines downwards from the cursor position.
     */
    public function eraseLines(int $count): void
    {
        $clear = '';
        for ($i = 0; $i < $count; $i++) {
            $clear .= "\e[2K".($i < $count - 1 ? "\e[{$count}A" : '');
        }

        if ($count) {
            $clear .= "\e[G";
        }

        static::writeDirectly($clear);
    }

    /**
     * Erase from cursor until end of screen.
     */
    public function eraseDown(): void
    {
        static::writeDirectly("\e[J");
    }
}

© KUJUNTI.ID