Certain ANSI sequences can cause integrated terminal to start showing bold text when it shouldn't #29439
Labels
bug
Issue identified by VS Code Team member as probable bug
*duplicate
Issue identified as a duplicate of another issue(s)
terminal
Integrated terminal issues
WSL
Issue when using WSL
Milestone
Windows 10, Build 15036
Version 1.14.0-insider
Commit 779a7df
Date 2017-06-23T05:59:57.891Z
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0
Something weird happens for me for quite some time now. It is that after certain output, all text starts to be bold in the integrated terminal, usually until some process is closed or in case of SSH until the session is closed. But it still may have some kind of "buggy state" afterwards, see below.
Test case 1
12345
and press Enter. Everything is still okay, nothing is bold.null
and press Enter. Note that the output wordnull
is bold.12345
and press Enter. Note that what you enter is now also bold (but the yellow text is not).Test case 2
Interestingly, this case behaves slightly different from test case 1 and shows that there is some kind of state which is not fully reset when existing the process which caused the bold text in the first place.
12345
and press Enter. Everything is still okay, nothing is bold.null
and press Enter. Note that the output wordnull
is bold.12345
and press Enter. Note that what you enter is now also bold (but the yellow text is not).null
, the text you type is already bold. This is different from case 1, in which only the formatting of the outputnull
triggered the bold text - now, also the yellow number output triggers the bold text, if the bug already has been triggered once before in the same shell session!I used
script
on a real linux machine (it's not working in WSL yet) to record the output of scenario 1 into a text file, see attachment. Whencat
ing that file, it causes exactly the same issue as in scenario 1. However, even when doing that in Git bash, it behaves as in scenario 1, not scenario 2.nodetest2.txt
These are the relevant escape sequences from the file:
The text was updated successfully, but these errors were encountered: