为什么我的命令提示符在 Windows 10 上冻结? [英] Why is my command prompt freezing on Windows 10?

查看:25
本文介绍了为什么我的命令提示符在 Windows 10 上冻结?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与 Windows 10 命令提示符的这个令人难以置信的令人沮丧的功能搏斗了一整天之后添加了这个问题,这让我觉得我的控制台应用程序代码有问题.我希望它会帮助某人.

I'm adding this question after spending an entire day wrestling with this incredibly frustrating feature of the Windows 10 command prompt which made me think there was something wrong with my console application code. I hope it will help someone.

问题:我的控制台应用程序似乎随机停止运行.这是怎么回事?

Issue: My console application seems to randomly stop running. What is going on?

推荐答案

该问题最终成为 Windows 10 控制台的一项新功能.在默认配置下,每当您单击 Windows 10 中的命令窗口时,它会在尝试写入控制台时立即停止应用程序进程.发生这种情况时,命令窗口已进入选择"模式.

The issue ended up being a new feature of the windows 10 console. Under the default config, whenever you click on a command window in windows 10, it immediately halts the application process when it attempts to write to the console. When this happens, the command window has gone into "selection" mode.

你可以判断它已经发生了,因为它会在命令窗口的标题栏前面加上选择"这个词:

You can tell it has happened because it will prefix the title bar of the command window with the word "Select" :

要让您的程序再次运行,您必须按 Esc 键或单击其他位置.

To get your program running again, you have to press escape or click somewhere else.

要摆脱这种奇怪的行为,您可以禁用快速编辑模式:

To get rid of this strange behavior, you can disable QuickEdit mode:

这篇关于为什么我的命令提示符在 Windows 10 上冻结?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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