<?php fopen( string $filename, string $mode, bool $use_include_path = false, ?resource $context = null): resource|false
<?php $ttyprops = trim(`stty -g`); system('stty -icanon -echo'); $term = fopen('/dev/tty', 'w'); fwrite($term, "\033[6n"); fclose($term);