fixed #9, but not able to use up/down key to choose history, instead calling this command cmdhistory