Enable/disable terminfo for the correct target in phases 0 and 1.