Fix word mode attribute handling
- The meaning of wordModeAttr was reversed. - The foregroundColor field includes the reverse flag, so no need to consider this flag when comparing character's attributes. - Draw the cursor separately from the text characters, since drawing it in drawTextCharacters() is incompatible with word mode.