Change cursor color by IME mode in Mac