<?php system(string $command, int &$result_code = null): string|false
<?php function terminal_cursor_position() { $ttyprops = trim(`stty -g`); system('stty -icanon -echo'); $term = fopen('/dev/tty', 'w'); fwrite($term, "\033[6n");
<?php $buf = fread(STDIN, 16); system("stty '$ttyprops'"); #echo bin2hex($buf) . "\n";