Update terminal.php