Skip to content

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

Closed

Description

  • 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

Activity

  1. added
    terminal
    on Sep 2, 2017
  2. 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[/+] on Sep 2, 2017
  3. Tyriar commented on Sep 11, 2017

    @Tyriar
    Contributor

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

  4. added
    info-needed
    on Sep 11, 2017
  5. sfabriece commented on Sep 16, 2017

    @sfabriece
    Author

    Daniel Imms (@Tyriar) There you go.
    git-bash-clear

  6. ioanungurean commented on Sep 24, 2017

    @ioanungurean

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

  7. Tyriar commented on Sep 26, 2017

    @Tyriar
    Contributor

    Ryan Prichard (@rprichard) any idea why clear would not be clearing the terminal?

  8. vscodebot commented on Oct 3, 2017

    @vscodebot

    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.

  9. added
    bug
    upstream
    and removed
    info-needed
    on Oct 3, 2017
  10. added this to the Backlog milestone on Oct 3, 2017
  11. hansnow commented on Oct 12, 2017

    @hansnow

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

  12. abdulghani commented on Nov 19, 2017

    @abdulghani

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

  13. added
    windows
    on Dec 26, 2017
  14. nateous commented on May 18, 2018

    @nateous

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

  15. Tyriar commented on May 18, 2018

    @Tyriar
    Contributor

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

  16. farrukhmomin commented on May 25, 2018

    @farrukhmomin

    Daniel Imms (@Tyriar) thanks, ctrl+k works.

  17. Tyriar commented on May 25, 2018

    @Tyriar
    Contributor

    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.

  18. added
    *duplicate
    and removed
    bug
    on May 25, 2018
  19. PauloGasparSv commented on Jun 12, 2018

    @PauloGasparSv

    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.

  20. mehulmpt commented on Jun 14, 2018

    @mehulmpt

    I'm facing the same bug which Paulo (@PauloGasparSv) told

  21. locked and limited conversation to collaborators on Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateterminalupstreamwindows

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions