KiTTY - Monochromatic Environment Color Configuration
Unifying KiTTY Session Colors in Windows Registry
Forcing a monochromatic mode while maintaining distinct background colors for environments (DEV, TEST, PROD) eliminates the unreadability of the built-in ANSI palette in terminal editors.
Environment Preparation and Backup
. Perform a full export of the HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions branch to a base .reg file.
. Create a copy of this file to serve as the working file.
. Delete the Sessions branch from the Windows registry.
Processing the Working .reg File
Step 1: Removing Existing Video Attributes
Find: [literal] ^"(Colour[0-9]+|AnsiColour|Xterm256Colour)"=.*\r?\n
Replace: (leave blank)
Step 2: Injecting the Monochromatic Profile
Find: [literal] ^([HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\.*])
Replace: [literal] $1\r\n"AnsiColour"=dword:00000000\r\n"Colour0"=“255,255,255”\r\n"Colour1"=“255,255,255”\r\n"Colour18"=“0,0,0”\r\n"Colour19"=“255,255,255”
Step 3: Assigning Background (Colour2) by Name Patterns
DEV Rule (suffix ’d’):
Find: [literal] ^([HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\[^]]*d(?:%2E[^]]+|.[^]]+)?])
Replace: [literal] $1\r\n"Colour2"=“73,111,55”
TEST Rule (suffix ’t’):
Find: [literal] ^([HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\[^]]*t(?:%2E[^]]+|.[^]]+)?])
Replace: [literal] $1\r\n"Colour2"=“32,128,145”
PROD Rule (suffix ‘p’):
Find: [literal] ^([HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\[^]]*p(?:%2E[^]]+|.[^]]+)?])
Replace: [literal] $1\r\n"Colour2"=“142,56,32”
PROD Rule (nodes containing ‘-plx-’):
Find: [literal] ^([HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\[^]]-plx-[^]]])
Replace: [literal] $1\r\n"Colour2"=“142,56,32”