Use character offsets instead of byte offsets for attributes
Redraw when colorscheme changes