Also update LINES from tput lines and ensure that the prompt test program stores the result of the select command.