X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/nunomaduro/termwind/src
home
/
prisjneg
/
public_html
/
vendor
/
nunomaduro
/
termwind
/
src
/
📁
..
📁
Actions
📁
Components
📁
Enums
📁
Exceptions
📄
Functions.php
(1.49 KB)
📁
Helpers
📁
Html
📄
HtmlRenderer.php
(3.8 KB)
📁
Laravel
📄
Question.php
(2.48 KB)
📁
Repositories
📄
Terminal.php
(885 B)
📄
Termwind.php
(9.04 KB)
📁
ValueObjects
Editing: Terminal.php
<?php declare(strict_types=1); namespace Termwind; use Symfony\Component\Console\Terminal as ConsoleTerminal; /** * @internal */ final class Terminal { /** * An instance of Symfony's console terminal. */ private ConsoleTerminal $terminal; /** * Creates a new terminal instance. */ public function __construct(?ConsoleTerminal $terminal = null) { $this->terminal = $terminal ?? new ConsoleTerminal; } /** * Gets the terminal width. */ public function width(): int { return $this->terminal->getWidth(); } /** * Gets the terminal height. */ public function height(): int { return $this->terminal->getHeight(); } /** * Clears the terminal screen. */ public function clear(): void { Termwind::getRenderer()->write("\ec"); } }
Upload File
Create Folder