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

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

Windows Registry Editor Version 5.00


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


; 1 - enable improved conhost features.

; Use wrapped text selection.
; Re-wrap text on resize operations.

; Allow close on Alt-F4 hotkey.

; Enable interpretation of VT control codes.
; 1 - activate "Insert mode", opposite of "Override mode".
; Disable word selection with Shift+ARROW, use Ctrl+M to enter to "Mark Mode".

; Allow selection by mouse & copy/paste by mouse right click.

; Enables Ctrl+Shift+C/V style copy/paste.

; 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)!

; Disable (0) color inversion on selection.

; Do not strip leading zeros when copying on selection (like "001" => "1").

; Disable Ctrl+C/V/A, use only Ctrl+Shift+C/V from "InterceptCopyPaste".

; 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.


; 0x28 X 0xa0 = 40x160.

; Opacity of the window (valid range: 0x4D-0xFF)

; Setting from:
; 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