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

Launching Vscode from git bash makes it impossible to clear the terminal window #33730

Closed
sfabriece opened this issue Sep 2, 2017 · 13 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) terminal Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) windows VS Code on Windows issues
Milestone

Comments

@sfabriece
Copy link

  • VSCode Version: 1.15.1 x64
  • OS Version: Windows 10

Steps to Reproduce:

Launch vscode from git bash.
$ code .

Open the terminal run some commands to fill the windows.

Then try to clear the windows. CTRL + L or clear.

ps: If I launch vscode from the system everything works fine.

I have git bash in the terminal window inside vscode

Reproduces without extensions: No

@vscodebot vscodebot bot added the new release label Sep 2, 2017
@vscodebot vscodebot bot added the terminal Integrated terminal issues label Sep 2, 2017
@sfabriece sfabriece changed the title Launching Vscode from git bash makes it impossible to clear the terminal windows Launching Vscode from git bash makes it impossible to clear the terminal window Sep 2, 2017
@Tyriar
Copy link
Member

Tyriar commented Sep 11, 2017

Can you provide a screenshot of what happens after you run clear?

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Sep 11, 2017
@sfabriece
Copy link
Author

sfabriece commented Sep 16, 2017

@Tyriar There you go.
git-bash-clear

@ioanungurean
Copy link

Hello, any updates on this? I have the same problem.

@Tyriar
Copy link
Member

Tyriar commented Sep 26, 2017

@rprichard any idea why clear would not be clearing the terminal?

@vscodebot
Copy link

vscodebot bot commented Oct 3, 2017

This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.

@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels Oct 3, 2017
@Tyriar Tyriar added this to the Backlog milestone Oct 3, 2017
@Tyriar Tyriar reopened this Oct 3, 2017
@hansnow
Copy link

hansnow commented Oct 12, 2017

Same issue. Only launch vscode via code <some-folder> in git bash will trigger this bug. same command in cmd works fine.

@abdulghani
Copy link

same exact issue here 😩 if i launch vscode from git-bash it won't clear the terminal 😭😭

@Tyriar Tyriar added the windows VS Code on Windows issues label Dec 26, 2017
@nateous
Copy link

nateous commented May 18, 2018

would love to stay inside vscode integrated terminal for work but not having clear is really annoying... is this slated to get worked?

@Tyriar
Copy link
Member

Tyriar commented May 18, 2018

@nateous try ctrl/cmd+k (windows/mac) or trigger the "Terminal: Clear" command through the command palette (F1).

@farrukhmomin
Copy link

@Tyriar thanks, ctrl+k works.

@Tyriar
Copy link
Member

Tyriar commented May 25, 2018

Tracking this in #45693

In the meantime ctrl+k (WIndows), cmd+k (macOS) will still clear the terminal properly, you can also run the command through the command palette. If the keybinding is not working for you see the FAQ on https://code.visualstudio.com/docs/editor/integrated-terminal#_common-questions about fixing the issue.

@Tyriar Tyriar closed this as completed May 25, 2018
@Tyriar Tyriar added *duplicate Issue identified as a duplicate of another issue(s) and removed bug Issue identified by VS Code Team member as probable bug labels May 25, 2018
@PauloGasparSv
Copy link

I have this issue everyday... it's actually the one and only issue i have with vscode.
When i first open a folder with vscode, the git bash terminal does not clear itself when i use the "clear" command. Using ctrl+k (i'm using windows 10) does not fix the issue since it clears the terminal but once i start typing, the previous state of the terminal overlaps whatever i was trying to type.

@mehulmpt
Copy link

I'm facing the same bug which @PauloGasparSv told

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 9, 2018
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 Integrated terminal issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

10 participants