Why does selecting text in a Command Prompt hang the running application?

若如初见. 提交于 2019-12-10 21:08:14

问题


We have an application that outputs logging info to stdout. However, if it is run in a command prompt window, you can use Mark to select text from the console. If you leave the text selected, the application just hangs and doesn't proceed, until you deselect the text (for example by pressing Enter to copy the selection into the clipboard). After that, the application continues normally. So it acts just like a breakpoint.

Can this behaviour of the command prompt be disabled somehow?


回答1:


This is a "feature" of the command prompt. I've never found a way to disable it. You can hit ESC to cancel the selection and allow the process to resume.



来源:https://stackoverflow.com/questions/1509816/why-does-selecting-text-in-a-command-prompt-hang-the-running-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!