Bash function redisp does better error checking.

Check if display is currently set and if setting display will result in a valid value.

Closes 32.