X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/laravel/prompts/src/Concerns
home
/
prisjneg
/
public_html
/
vendor
/
laravel
/
prompts
/
src
/
Concerns
/
📁
..
📄
Colors.php
(3.76 KB)
📄
Cursor.php
(1.53 KB)
📄
Erase.php
(611 B)
📄
Events.php
(753 B)
📄
FakesInputOutput.php
(2.66 KB)
📄
Fallback.php
(1.4 KB)
📄
Interactivity.php
(761 B)
📄
Scrolling.php
(2.92 KB)
📄
Termwind.php
(525 B)
📄
Themes.php
(3.78 KB)
📄
Truncation.php
(2.84 KB)
📄
TypedValue.php
(4.87 KB)
Editing: 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"); } }
Upload File
Create Folder