Added more escape codes for writemask and corrected \n\r