1. Windows 10
1.1. Installation
-
Browse to https://github.com/microsoft/terminal/releases?ref=geekbits.io.
-
Download the latest Windows Terminal msixbundle for Windows 10.
-
Enter the following commands at a PowerShell Command Prompt with administrative privileges.
-
Enter the following commands at a PowerShell Command Prompt.
net.exe use W: \\SMRU-HyperV01\Windows$ /Persistent:No Push-Location "W:\Software\Microsoft\Windows Terminal" Add-AppxPackage Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle Pop-Location
1.2. Configuration
-
Change TERM from xterm-256color to xterm-color.
export TERM=xterm-color -
See https://hamvocke.com/blog/lets-create-a-terminal-color-scheme.
-
See https://github.com/termstandard/colors?tab=readme-ov-file.
-
See https://jasonwryan.com/blog/2011/04/06/vim-colours-in-the-console.
-
Default colors.
Color Red Green Blue Registry Red Green Blue ----------------------- --- ----- ---- -------- ---- ----- ---- Default Foreground 187 187 187 Colour0 0xBB 0xBB 0xBB Default Bold Foreground 255 255 255 Colour1 0xFF 0xFF 0xFF Default Background 0 0 0 Colour2 0x00 0x00 0x00 Default Bold Background 85 85 85 Colour3 0x55 0x55 0x55 Cursor Text 0 0 0 Colour4 0x00 0x00 0x00 Cursor Colour 0 255 0 Colour5 0x00 0xFF 0x00 ANSI Black 0 0 0 Colour6 0x00 0x00 0x00 ANSI Black Bold/Bright 85 85 85 Colour7 0x55 0x55 0x55 ANSI Red 187 0 0 Colour8 0xBB 0x00 0x00 ANSI Red Bold/Bright 255 85 85 Colour9 0xFF 0x55 0x55 ANSI Green 0 187 0 Colour10 0x00 0xBB 0x00 ANSI Green Bold/Bright 85 255 85 Colour11 0x55 0xFF 0x55 ANSI Yellow 187 187 0 Colour12 0xBB 0xBB 0x00 ANSI Yellow Bold/Bright 255 255 85 Colour13 0xFF 0xFF 0x55 ANSI Blue 0 0 187 Colour14 0x00 0x00 0xBB ANSI Blue Bold/Bright 85 85 255 Colour15 0x55 0x55 0xFF ANSI Magenta 187 0 187 Colour16 0xBB 0x00 0xBB ANSI Magenta Bold/Bright255 85 255 Colour17 0xFF 0x55 0xFF ANSI Cyan 0 187 187 Colour18 0x00 0xBB 0xBB ANSI Cyan Bold/Bright 85 255 255 Colour19 0x55 0xFF 0xFF ANSI White 187 187 187 Colour20 0xBB 0xBB 0xBB ANSI White Bold/Bright 255 255 255 Colour21 0xFF 0xFF 0xFF
-
See https://en.wikipedia.org/wiki/ANSI_escape_code.
Bold = Bright ESC[30;47m # Black on white background. ESC[1;31m # Bright red. # 0 Reset or normal # 1 Bold or increased intensity # 30-37 Set foreground color # 40-47 Set background color # 90-97 Set bright foreground color # 100-107 Set bright background color ^[[01;35mimage.jpg^[[0m^M # Bright magenta. ^[[40;31;01mbroken_link^[[0m^M # Red on black background. ^[[40;33mnamed-pipe^[[0m^M # Yellow on black background. ^[[00;90m%home%delta%github%git%delta-software-labs%Documentation%client-software%git.adoc~^[[0m^M # Bright black (gray).
-
Make the following changes to the C:\Users\<User>\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json file.
-
Add the following line to the cmd.exe profile.
"colorScheme": "PuTTY",
-
Replace the "schemes": [], line with the following code.
"schemes": [ { "name": "PuTTY", "background": "#000000", "foreground": "#bbbbbb", "cursorColor": "#00ff00", "selectionBackground": "#ffffff", "black": "#000000", "brightBlack": "#555555", "red": "#bb0000", "brightRed": "#ff5555", "green": "#00bb00", "brightGreen": "#55ff55", "yellow": "#bbbb00", "brightYellow": "#ffff55", "blue": "#0000bb", "brightBlue": "#5555ff", "purple": "#bb00bb", "brightPurple": "#ff55ff", "cyan": "#00bbbb", "brightCyan": "#55ffff", "white": "#bbbbbb", "brightWhite": "#ffffff" } ],