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

Git Bash Terminal Clear #76310

Closed
hanselmandrew opened this issue Jun 28, 2019 · 2 comments
Closed

Git Bash Terminal Clear #76310

hanselmandrew opened this issue Jun 28, 2019 · 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

@hanselmandrew
Copy link

When using git bash via the vs code terminal, the terminal clear command does not reset the cursor to the top of the terminal window. Git bash supports a clear command. Using this clears the screen and resets the cursor position to the beginning.

I can reproduce in the following way:

  1. Opening VSCode
  2. Opening a terminal instance connected to git bash
  3. Hit return multiple times to create lines with git bash info
  4. Use a shortcut key (CTRL+L in my case) or the command input box to execute "Terminal: Clear"
  5. Press return/enter once creates a proper line at the top of the terminal
  6. Further returns will skip a portion of the terminal down to where the cursor was previous to the clear command

It appears switching from the terminal to a different tab (debug console, output, problems) returns the "cleared" text to the terminal.

VSCode Version: 1.35.1
Windows 10 v1903 (Build 18362.175)

Extensions
Extension Name Version
CoenraadS.bracket-pair-colorizer 1.0.61
DavidAnson.vscode-markdownlint 0.28.0
formulahendry.code-runner 0.9.11
lonefy.vscode-JS-CSS-HTML-formatter 0.2.3
ms-python.python 2019.6.22090
ritwickdey.LiveServer 5.6.1
sbrink.elm 0.25.0
Shan.code-settings-sync 3.3.1
xabikos.JavaScriptSnippets 1.7.2
yzhang.markdown-all-in-one 2.4.0
@vscodebot
Copy link

vscodebot bot commented Jun 28, 2019

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

@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Jun 28, 2019
@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2019

/duplicate #75141

@Tyriar Tyriar closed this as completed Jun 28, 2019
@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Jun 28, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 12, 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