ANSI color codes in terminal not working properly #64638
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
terminal
General terminal issues that don't fall under another label
Issue Type: Bug
some of the escape codes are not working properly.
escape sequence used:
\[\e[0m\]\[\e[97m\]\[\e[40m\] 15/0 \[\e[96m\]\[\e[41m\] 14/1 \[\e[95m\]\[\e[42m\] 13/2 \[\e[94m\]\[\e[43m\] 12/3 \[\e[93m\]\[\e[44m\] 11/4 \[\e[92m\]\[\e[45m\] 10/5 \[\e[91m\]\[\e[46m\] 9/6 \[\e[90m\]\[\e[47m\] 8/7 \[\e[37m\]\[\e[100m\] 7/8 \[\e[36m\]\[\e[101m\] 6/9 \[\e[35m\]\[\e[102m\] 5/10 \[\e[34m\]\[\e[103m\] 4/11 \[\e[33m\]\[\e[104m\] 3/12 \[\e[32m\]\[\e[105m\] 2/13 \[\e[31m\]\[\e[106m\] 1/14 \[\e[30m\]\[\e[107m\] 0/15 \[\e[0m\] normal \[\e[7m\] inversed \[\e[0m\]
palette used:

expected output (from mintty):

actual output:

amongst more obvious problems, it seems to assume that certain colors equal to terminal background/foreground - which is entirely wrong. dark theme output:

there's a reason default background and foreground colors are separate from the ANSI palette.
terminal is running cygwin's bash, works perfectly fine otherwise.
VS Code version: Code 1.29.1 (bc24f98, 2018-11-15T19:13:36.375Z)
OS version: Windows_NT x64 10.0.15063
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (4)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: