refactoring for commandline window settings
improve <CR> in commandline window