Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSI color codes in terminal not working properly #64638

Closed
unic0rn opened this issue Dec 7, 2018 · 2 comments
Closed

ANSI color codes in terminal not working properly #64638

unic0rn opened this issue Dec 7, 2018 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) terminal General terminal issues that don't fall under another label

Comments

@unic0rn
Copy link

unic0rn commented Dec 7, 2018

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:
image

expected output (from mintty):
image

actual output:
image

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

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
Item Value
CPUs AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G (4 x 3094)
GPU Status 2d_canvas: enabled
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
Memory (System) 5.96GB (2.84GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
linter-gfortran krv 2.0.1
cpptools ms- 0.20.1
tcl sle 0.2.0
vim vsc 0.16.13

(1 theme extensions excluded)

@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Dec 7, 2018
@vscodebot
Copy link

vscodebot bot commented Dec 7, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@Tyriar
Copy link
Member

Tyriar commented Dec 9, 2018

This is likely related to winpty, tracking in #45693

@Tyriar Tyriar closed this as completed Dec 9, 2018
@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 9, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

2 participants