terminal_input.js:  Fix the bug where you couldn't highlight text in terminals after the first click.