set text attributes and background color