changeset 659:90052a818d9c

Disable conhost "smartness" for copy/paste to work without intervention.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sat, 14 Nov 2020 20:35:09 +0200
parents 92ea8e214bcb
children 18172772343c
files win/reg/conhost.reg
diffstat 1 files changed, 16 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/win/reg/conhost.reg	Sat Nov 14 20:09:37 2020 +0200
+++ b/win/reg/conhost.reg	Sat Nov 14 20:35:09 2020 +0200
@@ -1,6 +1,7 @@
 Windows Registry Editor Version 5.00
 
 ; https://devblogs.microsoft.com/commandline/understanding-windows-console-host-settings/
+; https://docs.microsoft.com/en-us/windows-server/get-started/whats-new-in-console
 
 ; Because settings from .lnk have precedence over registry key - lauch cmd/wsl with Win+R
 ; for default to take place!
@@ -15,12 +16,15 @@
 ; Re-wrap text on resize operations.
 "LineWrap"=dword:00000001
 
+; Allow close on Alt-F4 hotkey.
+"AllowAltF4Close"=dword:00000001
 
-; Enable/disable (0x1/0x0) selection coloring.
-"EnableColorSelection"=dword:00000001
-
+; Enable interpretation of VT control codes.
+"VirtualTerminalLevel"=dword:00000001
 ; 1 - activate "Insert mode", opposite of "Override mode".
 "InsertMode"=dword:00000001
+; Disable word selection with Shift+ARROW, use Ctrl+M to enter to "Mark Mode".
+"ExtendedEditKey"=dword:00000000
 
 ; Allow selection by mouse & copy/paste by mouse right click.
 "QuickEdit"=dword:00000001
@@ -33,6 +37,15 @@
 ; I want for paste to insert text literary, so disabled "feature" (0)!
 "FilterOnPaste"=dword:00000000
 
+; Disable (0) color inversion on selection.
+"EnableColorSelection"=dword:00000000
+
+; Do not strip leading zeros when copying on selection (like "001" => "1").
+"TrimLeadingZeros"=dword:00000000
+
+; Disable Ctrl+C/V/A, use only Ctrl+Shift+C/V from "InterceptCopyPaste".
+"CtrlKeyShortcutsDisabled"=dword:00000001
+
 ; 0 black
 ; 1 blue
 ; 2 green
@@ -90,12 +103,7 @@
 ; HistoryBufferSize	REG_DWORD	Number of history entries to retain
 ; NumberOfHistoryBuffers	REG_DWORD	Number of history buffers to retain
 ; HistoryNoDup	REG_DWORD	Whether to retain duplicate history entries or not
-; ExtendedEditKey	REG_DWORD	Whether to allow the use of extended edit keys or not
 ; WordDelimiters	REG_SZ	A list of characters that are considered as delimiting words (e.g. `’ .-/\=|,()[]{}’`)
 ; TrimLeadingZeros	REG_DWORD	Whether to remove zeroes from the beginning of a selected string on copy (e.g. `00000001` becomes `1`)
-; EnableColorSelection	REG_DWORD	Whether to allow selection colorization or not
 ; ScrollScale	REG_DWORD	How many lines to scroll when using `SHIFT|Scroll Wheel`
 ; CodePage	REG_DWORD	The default codepage to use
-; CtrlKeyShortcutsDisabled	REG_DWORD	Disables new control key shortcuts
-; AllowAltF4Close	REG_DWORD	Allows the user to disable the Alt-F4 hotkey
-; VirtualTerminalLevel	REG_DWORD	The level of VT support provided by the Windows Console Host