terminal: allow toggling all inputs ('-'); refactor input reading.