add display-graphic-p mode