Pull out what's needed from preinit to make terminal attributes work on prmopt and user input. Move towards adding that to OO.