kentoh - Fotolia

Get started Bring yourself up to speed with our introductory content.

Windows 10 command-line console gives IT long-awaited capabilities

Microsoft's command-line console has new editing options and is easier to use in Windows 10. Just switch legacy mode off to take advantage of opacity options and better text controls.

In Windows 10, Microsoft included a long overdue update to the command-line console. It now provides new editing options and improved usability within familiar command-line environments.

The improvements to the Windows 10 command-line console make it much easier to use programs such as Command Prompt and PowerShell, and you can enable the new features simply by configuring them within the console properties. Microsoft also added registry settings to support the new options, which makes it possible to toggle them on and off at the desktop or through centralized management. For anyone who uses console applications, the Windows 10 improvements are a welcome addition, and they make running commands a better experience all around.

The console updates are specific to the conhost.exe program included with the Windows operating system. Since Windows Vista, the console executable has provided the functionality that drives command-line tools, such as PowerShell or the Command Prompt utility (cmd.exe). In fact, the Command Prompt itself remains unchanged in Windows 10, but it supports all the new features offered through the console.

New editing options

Although the new Windows 10 command-line console features are available out of the box to Windows 10, you must enable them before you can begin to use them. The simplest way to do this is through your command-line utility's properties. For example, the following figure shows the Command Prompt properties, with the Options tab selected.

Where to enable new console features
Where to enable new console features

Notice the Use legacy console checkbox at the bottom of the tab. The checkbox is selected by default, which means the new console features are disabled. Notice also that several options are grayed out. These are the new console editing options. To make these and other features available, clear the checkbox.

The first of the new editing options is Enable Ctrl key shortcuts, which provides the ability to use basic shortcut combinations within the console, such as Ctrl + C to copy text and Ctrl + V to paste text. That said, the console still supports the use of Ctrl + C to issue a break command. If you highlight text, the shortcut copies the text to the clipboard. If no text is highlighted, the shortcut issues a break command.

You can extend the use of keyboard shortcuts even further by enabling the Extended text selection keys option, which makes it easier to select text within a command. For example, you can use Shift + Left Arrow to select text to the left of the cursor one character at a time, or use Shift + Up Arrow to select all text up to the preceding line.

There is also an Enable line wrapping selection option, which changes the way you can select multiline text. In the past, when you selected multiple lines, the console took a columnar approach, allowing vertical selections without taking text that ran multiple lines into account, as shown below.

Legacy approach to selecting multiple lines of code
Legacy approach to selecting multiple lines of code

Notice that the text selected between points A and B does not include the beginning or end of lines, even though this text wraps across multiple lines. At times, this might be what you want, but quite often what you really need is to capture all the text.

As the following figure shows, if the Enable line wrapping selection option is enabled, the Windows 10 command-line console treats multiline selections the same as you would find in a program such as Microsoft Word, with all the text selected between points A and B.

The Windows 10 command-line console highlights wrapped text
The Windows 10 command-line console highlights wrapped text.

One other important new editing feature available to the console is the Filter clipboard contents on paste option. When enabled, the option filters out unsupported characters when you copy and paste from external sources. For instance, the feature will change em dashes to regular dashes, and curly quotes and apostrophes to their straight form.

Improved usability

The Windows 10 command-line console also adds a few other features that make it easier to use. For example, resizing the console is now much more intuitive. Before, the only way to change the layout settings was through the console properties. But now, you can drag the corner of the window to resize it, and the buffer and window sizes are adjusted automatically.

For example, suppose you're working with the Command Prompt utility and you start with the basic layout dimensions:

Command Prompt properties layout tab
Command Prompt properties layout tab

Now, suppose you drag one of the corners of the Command Prompt window to make it wider and higher. If you were to then view the layout properties, you would find that the buffer and windows sizes have been increased to match the new size.

You can return to the Layout tab of the console properties at any time to adjust the sizes more precisely, just like you could with the legacy console.

Another new feature on the Layout tab is the Wrap text output on resize option. In the past, if you were to resize the window to make it smaller, the lines of text would not change and you would have to scroll across the window to view all the data. But if the Wrap text output on resize option is enabled and you resize the window, the lines will automatically wrap, so you don't have to scroll across the window.

You can find another new Windows 10 command-line console feature on the Colors tab in the console properties. The console now supports the Opacity option, which lets you set the transparency of the console window.

You can set the opacity between 30% and 100%, but 100% is the default -- the lower the opacity, the higher the transparency. At 30%, you can make the window practically invisible.

Next Steps

Ten command-line tools to use in Windows 7

How to shut down PCs remotely with the command line

Command-line tools to see if you’ve been hacked

What is the command-line interface?

Accessing the Command Prompt in Windows Server 2012

This was last published in October 2015

Dig Deeper on Microsoft Windows 10 operating system

PRO+

Content

Find more PRO+ content and other member only offers, here.

Join the conversation

5 comments

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

Will you use the command-line console improvements in Windows 10?
Cancel
Yes... it is a welcome change!!!  I am NOT that impressed with Windows 10 as my experience with it has been fraught with difficulties.  First, I ran the trial version, and was aware that it would expire, but was unable to get the upgrade to work which ended badly.  The trial has expired, and the "recovery tools" have been useless, to date.  I even tried a reset.  Failed, again, and without enough explanation to even hint at the way forward from this point.  My original (Windows 7) recovery tools fail, as well.  I expected that.  I am not a professional IT person, but have worked with these machines since they became available in the early 80(s), and have never had this much trouble recovering from a "trial" version. 

The other system (second of my dozen, or so), I "upgraded" from Win 7 Pro.  I had upgraded that one from Vista, and when Windows 10 proved to be VERY UNSTABLE, I attempted "fall-back."  Unfortunately, my only fall-back option was to Vista, which was severely broken, and why I went on up to 7 Pro in the first place.  So, yes, I am extremely happy to have access to such strong, and open command line options.  Perhaps, I can find a way through this quandary through it's use.  I am in research mode, at present.
Cancel
Oh! I thought your article/comments were excellent, too! Thank you!
Cancel
I apologize for the "horror story" DUMP on you guys, too!  I knew there was risk, so this is really "on me."  Should anyone reading this have any suggestions, please feel free to comment!  I am tentatively planning to pull the drive out, connect to a functioning PC, and do a low level format on it if I cannot get a solution short of that within the next few days. I've started over many times, so it's not that big a deal overall.
Cancel

Yes. I will definitely use the command line and as many new features as possible!


Cancel

-ADS BY GOOGLE

SearchVirtualDesktop

SearchWindowsServer

SearchExchange

Close