Change the way to get cursor-color and default foreground color.