Skip to content

Instantly share code, notes, and snippets.

@anddam
Created March 15, 2018 10:15
Show Gist options
  • Save anddam/7043298fe64d1cf53dc8e237dbde3455 to your computer and use it in GitHub Desktop.
Save anddam/7043298fe64d1cf53dc8e237dbde3455 to your computer and use it in GitHub Desktop.
Windows conhost mapping between registry entries and concfg labels

Concfg works with JSON config files. Zenburn has been ported to Windows' conhost 1 with a registry file whose entries have "silent" names.

By applying the registry to a running system and then exporting the current configuration with concfg we're able to figure the mapping between registry entries and ANSI colors in conhost so we have a zenburn concfg preset.

{
"black": "#3f3f3f",
"white": "#ffffff",
"blue": "#afafff",
"cyan": "#8cd0d3",
"gray": "#dcdccc",
"green": "#7f9f7f",
"magenta": "#c880c8",
"red": "#e37170",
"yellow": "#f0dfaf",
"dark_blue": "#6464af",
"dark_cyan": "#008080",
"dark_gray": "#c08080",
"dark_green": "#008000",
"dark_magenta": "#aa50aa",
"dark_red": "#332323",
"dark_yellow": "#dcdc00",
"cursor_size": "small",
"font_face": "Lucida Console",
"font_size": "0x14",
"popup_colors": "dark_magenta,white",
"screen_colors": "gray,black",
"command_history_no_duplication": false,
"window_size": "120x30",
"font_weight": 400,
"screen_buffer_size": "120x9001",
"command_history_length": 50,
"font_true_type": true,
"quick_edit": true,
"insert_mode": true,
"load_console_IME": true,
"fullscreen": false,
"num_history_buffers": 4,
"window_alpha": 255
}
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:003f3f3f
"ColorTable01"=dword:00af6464
"ColorTable02"=dword:00008000
"ColorTable03"=dword:00808000
"ColorTable04"=dword:00232333
"ColorTable05"=dword:00aa50aa
"ColorTable06"=dword:0000dcdc
"ColorTable07"=dword:00ccdcdc
"ColorTable08"=dword:008080c0
"ColorTable09"=dword:00ffafaf
"ColorTable10"=dword:007f9f7f
"ColorTable11"=dword:00d3d08c
"ColorTable12"=dword:007071e3
"ColorTable13"=dword:00c880c8
"ColorTable14"=dword:00afdff0
"ColorTable15"=dword:00ffffff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment