view win/reg/conhost.reg @ 660:18172772343c

Added link to conhost Docs.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sat, 14 Nov 2020 20:40:07 +0200
parents 90052a818d9c
children
line wrap: on
line source

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
; https://docs.microsoft.com/en-us/windows/console/

; Because settings from .lnk have precedence over registry key - lauch cmd/wsl with Win+R
; for default to take place!

[HKEY_CURRENT_USER\Console]

; 1 - enable improved conhost features.
"ForceV2"=dword:00000001

; Use wrapped text selection.
"LineSelection"=dword:00000001
; Re-wrap text on resize operations.
"LineWrap"=dword:00000001

; Allow close on Alt-F4 hotkey.
"AllowAltF4Close"=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

; Enables Ctrl+Shift+C/V style copy/paste.
; https://github.com/microsoft/terminal/issues/397
"InterceptCopyPaste"=dword:00000001

; Whether to replace characters on paste (e.g. Word “smart quotes” are replaced with regular quotes).
; 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
; 3 cyan
; 4 red
; 5 magenta
; 6 yellow
; 7 white
; 8 grey
; 9 light-blue
; A light green
; B light cyan
; C light red
; D light magenta
; E light yellow
; F light white

; 0xf<<4 | 0x0 ~ white background, black foreground.
"ScreenColors"=dword:000000f0

"ColorTable00"=dword:00000000
"ColorTable01"=dword:00ff4500
"ColorTable02"=dword:00228b22
"ColorTable03"=dword:00ffa500
"ColorTable04"=dword:00000080
"ColorTable05"=dword:00b03060
"ColorTable06"=dword:00008b8b
"ColorTable07"=dword:00c0c0c0
"ColorTable08"=dword:00808080
"ColorTable09"=dword:00696969
"ColorTable10"=dword:003cb371
"ColorTable11"=dword:00ffd700
"ColorTable12"=dword:000000ff
"ColorTable13"=dword:00ff00ff
"ColorTable14"=dword:0000ced1
"ColorTable15"=dword:00ffffff

; 0x28 X 0xa0 = 40x160.
"WindowSize"=dword:2800a0

; Opacity of the window (valid range: 0x4D-0xFF)
"WindowAlpha"=dword:000000ff

; Setting from:
;   https://devblogs.microsoft.com/commandline/understanding-windows-console-host-settings/
; that I'm not going to alter:
; FontSize	Coordinate (REG_DWORD)	Size of font in pixels
; FontFamily	REG_DWORD	GDI Font family
; ScreenBufferSize	Coordinate (REG_DWORD)	Size of the screen buffer in WxH characters
; CursorSize	REG_DWORD	Cursor height as percentage of a single character
; WindowPosition	Coordinate (REG_DWORD)	Initial position of the window in WxH pixels (if not set, use auto-positioning)
; PopupColors	REG_DWORD	FG and BG colors used when displaying a popup window (e.g. when F2 is pressed in CMD.exe)
; FaceName	REG_SZ	Name of font to use (or “__DefaultTTFont__”, which defaults to whichever font is deemed most appropriate for your codepage)
; FontWeight	REG_DWORD	GDI font weight
; 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
; 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`)
; ScrollScale	REG_DWORD	How many lines to scroll when using `SHIFT|Scroll Wheel`
; CodePage	REG_DWORD	The default codepage to use