Updated terminal/emulator/term.php addressing issue #116