Fullscreen

Fullscreen #

PhpTui\Tui\Display\Viewport\Fullscreen

Viewport that occupies the entire screen.

Example #

Show code
<?php

declare(strict_types=1);

use PhpTui\Tui\DisplayBuilder;
use PhpTui\Tui\Extension\Core\Widget\BlockWidget;
use PhpTui\Tui\Widget\Borders;

require 'vendor/autoload.php';

// fullscreen is the default so it can be omitted
$display = DisplayBuilder::default()->fullscreen()->build();
$display->draw(BlockWidget::default()->borders(Borders::ALL));