The pattern used in this function is that if `fg_color`, `bg_bright` etc remain unchanged their value is -1.
You should do the same for `inverse`: initialize to -1 and then change the value to either 0 or 1 if it has to change.