You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The cls command doesn't clear the terminal (Windows 10 1903, ConPTY) #72708
bugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another labelterminal-conptyIntegrated terminal issues related to the ConPTY backendverifiedVerification succeededwindowsVS Code on Windows issues
I can reproduce it, it happens sometimes on shells using ConPTY. Needs more investigation as to why. Comparing good/bad logs using this is where I would start if anyone wants to take a stab at this one.
Also happens for me. I've tried different shells (cmd, powershell, git bash) all on windows, as well as different renderers (canvas and dom for each). Doesn't appear to affect my linux machine though.
Edit: Turns out this was related to #33730 for me. I was launching vscode from git bash, which is known to cause the vscode terminal not to clear correctly. When launching via any other method it appears to work correctly.
changed the title [-]terminal bug when I enter cls command at windows 10 1903[/-][+]The cls command doesn't clear the terminal (Windows 10 1903, ConPTY)[/+]on Apr 30, 2019
Daniel Imms (@Tyriar) I get the log,here.
When I run command on cmd,it works fine.(I run three command on cmd, dir,dir,clear)
When I run command wsl,toggle to wsl shell,it happens.(I run three commands on bash ls,ls,clear) ,and there are so many Unknown CSI code errors
vscode 1.35 stable and insiders 1.36 - "workbench.action.terminal.clear" command clears the terminal but if you switch and come back to you get the same stuff like before...
bugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another labelterminal-conptyIntegrated terminal issues related to the ConPTY backendverifiedVerification succeededwindowsVS Code on Windows issues
Activity
tnnmigga commentedon Apr 22, 2019
cmd alse exist bug


tnnmigga commentedon Apr 22, 2019
and sometimes I close terminal will meet it when I use cmd terminal

it very frequent!


I just open terminal and input cls and close terminal,then it begin,and don't need any other operation
mooretc2 commentedon Apr 24, 2019
I just tested this with both cmd and PS on Windows and
clsworked as expected for me. Can you give any more information on your setup?tnnmigga commentedon Apr 25, 2019
This is my windows 10 pro version 1903 iso download link
ed2k://%7Cfile%7Ccn_windows_10_consumer_editions_version_1903_x64_dvd_8f05241d.iso%7C4905476096%7CF28FDC23DA34D55BA466BFD6E91DD311%7C/
and language is Simplified Chinese
PowerShell problem has been solved when I update windows
but cmd still has the problem
Tyriar commentedon Apr 25, 2019
I can reproduce it, it happens sometimes on shells using ConPTY. Needs more investigation as to why. Comparing good/bad logs using this is where I would start if anyone wants to take a stab at this one.
aqez commentedon Apr 26, 2019
Also happens for me. I've tried different shells (cmd, powershell, git bash) all on windows, as well as different renderers (canvas and dom for each). Doesn't appear to affect my linux machine though.

Edit: Turns out this was related to #33730 for me. I was launching vscode from git bash, which is known to cause the vscode terminal not to clear correctly. When launching via any other method it appears to work correctly.
starship863 commentedon Apr 30, 2019
Thank you Daniel Imms (@Tyriar) for the tremendous progress on Conpty!
I can also confirm this bug with both git-bash and wsl bash terminals on my Windows 1903.
It happens in my environment EVERYTIME.
Anything that we can do to help tackling this problem?
Tyriar commentedon Apr 30, 2019
Mengjiao Lyu (@starship863) first step is to validate that ConPTY is indeed sending the wrong data by investigating logs of when it works and when it doesn't using the https://github.com/Microsoft/vscode/wiki/Terminal-Issues#enabling-escape-sequence-logging, if ConPTY is in the wrong we should them move this issue up to https://github.com/Microsoft/console. We should validate here first though as I don't want to waste their time.
[-]terminal bug when I enter cls command at windows 10 1903[/-][+]The cls command doesn't clear the terminal (Windows 10 1903, ConPTY)[/+]kele1997 commentedon May 14, 2019
Daniel Imms (@Tyriar) I get the log,here.
When I run command on cmd,it works fine.(I run three command on cmd,
dir,dir,clear)When I run command
wsl,toggle to wsl shell,it happens.(I run three commands on bashls,ls,clear) ,and there are so manyUnknown CSI codeerrors2 remaining items
Tyriar commentedon May 31, 2019
Upstream: xtermjs/xterm.js#2148
Tyriar commentedon Jun 4, 2019
Fixed in #74858
tipleavalentin commentedon Jun 11, 2019
vscode 1.35 stable and insiders 1.36 - "workbench.action.terminal.clear" command clears the terminal but if you switch and come back to you get the same stuff like before...
Tyriar commentedon Jun 13, 2019
tipleavalentin that's a different issue because of how conpty works, see #75141
Morgy93 commentedon Jun 21, 2019
Still having the exact same issue with 1.35.1 ?!
tipleavalentin commentedon Jun 21, 2019
Thomas Hauschild (@Morgy93) same issue I have on 1.35.1. Also 1.36 insider doesn't clear after I switch terminal tabs.
Tyriar commentedon Jun 26, 2019
tipleavalentin what do you mean clear after switching terminal tabs? It's not meant to clear then?
tipleavalentin commentedon Jun 26, 2019
Daniel Imms (@Tyriar) Here's a video I made: https://youtu.be/HsQ2GS_hbjw
tipleavalentin commentedon Jun 26, 2019
The command I run was: workbench.action.terminal.clear
tipleavalentin commentedon Jun 26, 2019
The issue is present in the latest insider version, so no fix was done for this. I run Windows 10 x64 1903 18362.175 with git bash 2.22.0.windows.1.
Tyriar commentedon Jun 26, 2019
tipleavalentin that's this issue #75141