11 lines
239 B
PHP
11 lines
239 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace Aviat\Kilo\Type;
|
||
|
|
||
|
class TerminalSize {
|
||
|
public function __construct(public int $rows, public int $cols)
|
||
|
{
|
||
|
// Remove a row for the status bar, and one for the message bar
|
||
|
$this->rows -= 2;
|
||
|
}
|
||
|
}
|