Terminus: `clear` doesn't clear in Git Bash

Created on 2 Jul 2017  路  27Comments  路  Source: Eugeny/terminus

clear command does not work properly in windows 8.1. instead of clearing the terminal only cursor goes at the start of the terminal.I am using git bash as terminal.

Windows Confirmed Bug

Most helpful comment

I can confirm this still happens.
It clears the screen but jumps to the beginning then to the end of the screen while im typing. That doesn't now happen if i write clear but only when using Control+L

All 27 comments

same issue for me too. Neither Ctrl+L or clear works. The cursor just moves to the top of the page without clearing anything in the window.

capture

  • Terminus : 1.0.0-alpha.15
  • Windows : 7
  • Git Bash : 2.7.0

Neither does Alt+F8 works.

It's just git bash. I checked on all others.

Edit:

It's a bug with git bash only.

I confirm that this is indeed only git-bash related, but I haven't been able to find a solution yet.

Same seems to happen if you run clear under ssh even if you start the console using cmd-clink

The same for me.
I'm in a Windows 10 Pro, Terminus 1.0.0-alpha.14 using Git Bash.

Hi, aren't we supposed to close an issue if its resolved or if its considered a non-issue(duplicate, irrelevant etc.)?
I went through all the issues that are closed but found no solution in any of them, can't we keep one open for people to provide a solution?

@kattheliving this has been fixed in the aforementioned commit. If it still doesn't work for you with the latest version, please feel free to reopen!

Hello
I Install Latest Version on terminus and I have same issue when using git command like git pull or others git command.

Windows 10

@oveysrostami what's the issue with the git commands? They don't cause a screen clear AFAIK

When I'm using PowerShell as the terminal, the clear command works.

@oveysrostami what's the issue with the git commands? They don't cause a screen clear AFAIK

When I use git command ,I see just blink nothing else.

@oveysrostami what's the issue with the git commands? They don't cause a screen clear AFAIK

When I use git command ,I see just blink nothing else.

Hi, When I use ssh to connect to other machine, and the shell on remote is zsh (oh-my-zsh), I have the same issue, see just blink nothing else, and did not execute the command as well.
Git commands like git pull git push git fetch
I checked bash shell, no bugs on my machine.

I'm using the latest version, Windows 10

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.

Not sure if this issue is related. I could open a new one if need be. I am using PowerShell and clear works just fine. cls works just fine. ctrl+l on the other hand clears the screen but also makes the prompt invisible until you start typing again as shown in the picture. Does not happen in WSL.

terminus

I also had the same problem with the 'clear' command with my Git bash after setting up the SSH keys. However, the CTRL + L works totally fine. Anyone facing the same issue should use the above. Regards

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment.
Thank you for your contributions.

Any update there?
I have same use with git-bash on Windows, it look like something remain cached or something like that ...
But if a scroll 1 step it disappear.

I'm on Windows 10, alpha 65 seemed to be working fine (clear command in _Git-Bash_ would clear the screen) but updating to alpha 71 seemed to break the functionality: clear returns the caret to the top of the screen, but doesn't clear out all the previous output, eg:

image

I have not been able to find the pattern - at times it _does_ clear the whole screen, but at other times it retains the past output 馃槙

This also happens in WSL with Ubuntu. If you open and quit vim, the last line still appears on the screen. This only occurs if the backend is set to xterm. If you change it to hterm, clear works properly.

Untitled

I can confirm this still happens.
It clears the screen but jumps to the beginning then to the end of the screen while im typing. That doesn't now happen if i write clear but only when using Control+L

I am still having this issue. Clear and CTRL+L both have the same effect. Cursor jumps to the top o the terminal view and overwrites an existing content.

Try command reset . It works for me.

"clear" only goes back to the top of the screen, but does not erase anything (Win7 + git bash).
"reset" command works perfectly, this is magic !
But why ???? "clear" should work as well.
Btw both "clear" and "reset" works in SSH remotely. So must come from git bash I believe. Very nice terminal btw.

I have same issue. Was working fine just few hours ago. However it does get clear when i scroll through.

I wonder if a possible solution is the same as in #729, namely:

Switching to hterm or xterm (WebGL) from xterm (Settings | Appearance | Frontend)

The same form me.
Win10, Terminus 1.0.108a - neither of terminal types are not cleared

You can set a shortcut for Clear Terminal under Settings -> Hotkeys.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChipwizBen picture ChipwizBen  路  20Comments

birdmanmandbir picture birdmanmandbir  路  14Comments

drsm79 picture drsm79  路  14Comments

lonkaars picture lonkaars  路  14Comments

abalter picture abalter  路  18Comments