optimize the process of the text prompt in the console panel.
Merge pull request #1 from jcrom/master

optimize the process of the text prompt in the console panel.