optimize the process of text prompt in console panel.