Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

New features of the Windows Server 2016-Windows console

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The console host (the base code for applications that support all character modes, including the Windows command prompt, Windows PowerShell prompt, and so on) has been updated in several ways to add new features. Control new features are enabled by default, but you can turn on and off each new feature or restore to the previous console host through the Properties interface (mainly on the options tab) or using these registry keys (all entries are DWORD values under HKEY_CURRENT_USER\ Console):

The registry key indicates that ForceV21 enables all new console features; 0 disables all new features. Note: this value is not stored in the shortcut, only in this registry key. LineSelection1 enables row selection; 0 only uses block mode FilterOnPaste1 to enable new paste behavior LineWrap when resizing console window 1 text wrapping CtrlKeyShortcutsDisabled0 enables shortcuts to new keys; 1 disables ExtendedEdit key 1 enables full keyboard selection key set; 0 disables TrimLeadingZeros1 to reduce leading zeros in selection by double clicking; 0 retains leading zero string WindowsAlpha settings between 30% and 100% opacity values. Use 0x4C to 0xFF or 76 to 255to specify a value of WordDelimiters to define the characters to skip (the default is a space character) when the entire word text is selected at once through CTRL + SHIFT + ARROW. Set this REG_SZ value to contain all characters that you want to be treated as delimiters. Note: this value is not stored in the shortcut, only in this registry key.

These settings are stored in each window title in the registry under HKCU\ Console. The console window that the shortcut opens has these settings stored in the shortcut; if the shortcut is copied to another computer, the settings are moved to the new computer. The settings in the shortcut override all other settings, including global settings and default settings. However, if you want to restore to the original console using use Legacy console on the options tab, this setting is global and will remain the same for all windows, including after restarting the computer. You can preconfigure settings or script by configuring the registry in the Unattend file appropriately or by using Windows PowerShell. 16-bit NTVDM applications always revert to older console hosts. Note: if you encounter problems with the new console settings and cannot be resolved through any of the specific options listed here, you can always restore to the original console by setting ForceV2 to 0 or using the use Legacy console control in options. Console behavior now, you can use the mouse to grab the edge and drag it to resize the console window at will. The scroll bar is displayed only when you manually set the window size (by using the layout tab in Properties), or when the longest line of text in the buffer is wider than the current window size. The new console window now supports automatic line wrapping. However, if you use the console API to change the text in the buffer, the console retains it in the format in which the text was originally inserted. The console window can now be translucent (at least 30% transparency). You can adjust transparency from the Properties menu or using the following keyboard commands:

To do this, use this key combination: increase transparency CTRL + SHIFT + plus sign (+) or CTRL + SHIFT + mouse scroll up to reduce transparency CTRL + SHIFT + minus sign (-) or CTRL + SHIFT + mouse scroll down to toggle full-screen display mode ALT + ENTER

There are many new options for selecting text and lines, as well as for tagging text and using buffer history. The console will try to avoid conflicts with applications that may be using the same key. For developers: if there is a conflict, you can usually control the application's line input, processing input, and echo input mode usage behavior through SetConsoleMode () API. If you are running in processing input mode, you can use the following shortcuts, but in other modes, the application must process it. Any key combination that is not listed here has the same function as in the old console. You can also try to resolve conflicts using different settings on the options tab. If all other methods fail, you can restore to the original console at any time. You can now use the Click-and-drag option outside of QuickEdit mode, which allows you to select notepad instead of just cross-line text in rectangular blocks. The copy operation no longer needs to delete the newline character. In addition to the Click and drag option, these key combinations can also be used for: text selection

To do this, do the following: use this key combination: move the cursor one character to the left, expand the selection SHIFT + move the cursor to the right one character to the left, expand the selection SHIFT + right select text line by line from the insertion point SHIFT + up Arrow to extend the text selection down one line from the insertion point SHIFT + Down Arrow if the cursor is in the line you are currently editing Use this command once to extend the selection to the last character in the input line. Use this command a second time to extend the selection to the right margin. SHIFT + END use this command to select all text from the insertion point to the right margin if the cursor is not in the line you are currently editing. SHIFT + END if the cursor is in the line you are currently editing, use this command once to immediately extend the selection to the characters after the command prompt. Use this command a second time to extend the selection to the right margin. SHIFT + HOME use this command to extend the selection to the left margin if the cursor is not in the line you are currently editing. SHIFT + HOME extends the selection down one screen SHIFT + Page Down extends the selection up one screen SHIFT + PAGE UP extends the selection one word to the right (you can use the WordDelimiters registry key to define a delimiter for "word". ) CTRL + SHIFT + right Arrow extends the selection one word to the left CTRL + SHIFT + HOME extends the selection to the beginning of the screen buffer CTRL + SHIFT + END if the cursor is at the current line and the line is not empty, all text after the prompt is selected CTRL + An if the cursor is not in the current line, select the entire buffer CTRL + A

Edit text you can use keyboard commands to copy and paste text in the console. CTRL + C now provides two functions. If no text is selected when using it, it will send a newline command as usual. If text is selected, the first use will copy the text and clear the selection; the second use will send a newline command. The following are other editing commands:

To do this, use this key combination: paste the text to the command line CTRL + V, copy the selected text to the clipboard CTRL + INS, copy the selected text to the clipboard; send the newline command CTRL + C to paste the text to the command line SHIFT + INS

To enter tag mode at any time, right-click anywhere in the title bar of the console, point to Edit, and then choose tag from the menu that opens. You can also type CTRL + M. In tag mode, use the ALT key to identify the beginning of the automatic line wrapping option. (if enable automatic line wrapping for selection is disabled, tag mode selects text in the block. ) in tag mode, press CTRL + SHIFT + arrow to select by characters instead of words as in normal mode. In addition to the selection keys in the Edit text section, these combinations can also be used in tag mode:

To do this, do the following: use this key combination: enter tag mode to move the cursor in the window Ctrl+M in tag mode, use with other key combinations to start automatic line wrapping selection ALT move the cursor in the specified direction arrow keys move the cursor in the specified direction on a page the PAGR key moves the cursor to the beginning of the buffer CTRL + HOME moves the cursor to the end of the buffer CTRL + END

Navigation history

To do this, use this key combination: move up one line of CTRL + up arrow in the output history, move one line of CTRL + down arrow in the output history to move the viewport to the top of the buffer (if the command line is empty), or delete all characters to the left of the cursor (if the command line is not empty) CTRL + HOME moves the viewport to the command line (if the command line is empty) Or delete all characters to the right of the cursor (if the command line is not empty) CTRL + END

Other keyboard commands

To do this, do the following: use this key combination: open the find dialog box Ctrl+F and close the console window Alt + F4

Welcome to the official account of Wechat: Xiao Wen study Society.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report