Updating cursor and text color