php how to specify virtual terminal size in shell_exec()?
how do i set the virtual terminal size with shell_exec() ? i tried function shell_exec_with_size(string $cmd, int $columns = 999, int $rows = 999): string { $cmd = '/bin/bash -c ' . escapeshellarg("stty columns {$columns}; stty rows {$rows};{$cmd}"); return shell_exec($cmd);…