`curdisp="$tty"` and remove the test below?