added fix to look for \n to know when a message has been sent. Added term colors