Fix restoring the terminal state in JRuby, after displaying a terminal menu choice.