Support dim attribute and resetting

Dim is not supported by my terminal though and needs testing
Support italic