Fix 256 color support #797