Set terminal profile correctly