为什么在命令提示符中选择文本会挂起正在运行的应用程序? [英] Why does selecting text in a Command Prompt hang the running application?

查看:193
本文介绍了为什么在命令提示符中选择文本会挂起正在运行的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个应用程序可以将日志信息输出到 stdout 。但是,如果它在命令提示符窗口中运行,您可以使用Mark从控制台中选择文本。如果您选择了文本,应用程序只会挂起,不会继续,直到您取消选择文本(例如通过按Enter键将选择复制到剪贴板)。之后,应用程序继续正常。

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?

推荐答案

这是命令提示符的功能。我从来没有找到一种方法来禁用它。您可以按ESC取消选择,并允许恢复过程。

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.

这篇关于为什么在命令提示符中选择文本会挂起正在运行的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆