fixed problem in command line mode

resolve X-Window problem in command mode