/
home
/
sjslayjy
/
public_html
/
sag_latest
/
vendor
/
laravel
/
prompts
/
src
/
Concerns
/
Upload File
HOME
<?php namespace Laravel\Prompts\Concerns; use Laravel\Prompts\Output\BufferedConsoleOutput; use function Termwind\render; use function Termwind\renderUsing; trait Termwind { protected function termwind(string $html) { renderUsing($output = new BufferedConsoleOutput); render($html); return $this->restoreEscapeSequences($output->fetch()); } protected function restoreEscapeSequences(string $string) { return preg_replace('/\[(\d+)m/', "\e[".'\1m', $string); } }