Cleaned up tcattr related code and made prompt set nlcr.