<?php fwrite(resource $stream, string $data, ?int $length = null): int|false
<?php $sttyMode = shell_exec('stty -g'); shell_exec('stty -icanon -echo'); @fwrite($input, terminal()->getCsi() . '6n'); $code = trim(fread($input, 1024));