Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 630
Andrei Vajna II Avatar asked Oct 02 '09 14:10

Andrei Vajna II


People also ask

Why does command prompt get stuck?

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.

What is QuickEdit mode CMD?

Quick Edit mode is a Microsoft Windows feature which allows the user to select text (click and drag the mouse across the desired text) using the mouse in the Command Prompt window.

Why is my command prompt not responding?

If Command Prompt is not opening on your Windows PC, you can try alternative ways to launch CMD. You can try launching Command Prompt from File Explorer or Task Manager. If that doesn't work, you can try running a System File Checker (SFC) scan to fix the corrupted system files and make CMD work.


1 Answers

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.

like image 76
Jim Garrison Avatar answered Jan 03 '23 16:01

Jim Garrison