Fluentterminal: clear doesn't work on Git Bash

Created on 24 Mar 2019  路  8Comments  路  Source: felixse/FluentTerminal

When I run clear using the bash.exe that's shipped with Git for Windows, the console doesn't clear in 0.4.0.0. The cursor's position is reset, but all of the text content remains. This worked in 0.3.1.0. Is there a way to alias clear to Ctrl+L?

Edit: I also have issues when detaching from a tmux session. The screen contents aren't cleared.

All 8 comments

I have the same issue with Alacritty https://github.com/jwilm/alacritty/issues/1967. Probably a bug in the underlying *pty foundation used.

Confirming I had the same bug while using git-bash while running FluentTerminal v0.5.3.0

Solution:

for FluentTerminal: go to the profile settings and set "_Use ConPty_" to Yes 馃殌


ps - I have had similar problems on the Terminus terminal, see GitHub Issue -- there, a solution was to use a different render engine

Unfortunately, @whyboris's solution didn't help in my case with WSL in 0.5.3.0. I'm having the same problem in Hyper, while Alacritty seems to work fine so far.

I have the same issue, I use bash in vscode

I had the same issue with Git Bash in Fluent Terminal, but not in VS Code. Then I noticed that in VSCode, the environment variable TERM=cygwin, but in Fluent Terminal TERM=xterm-256. After setting TERM=cygwin in Fluent Terminal, clear has been working for me.

@tjohnsonBCM in which file did you set the env variable?

@EvangelosKolimitras I set it in my ~/.bashrc file so that it takes effect whenever a Bash terminal loads.

Testing 0.7.0 a lot of things don't work if you cursor is on the last line of the window. For example clear works to clear the screen, but not if I run clear from a prompt on the last line of the window, in that case the cursor moves to the top line but nothing is cleared and all the text remains. Testing with WSL and 'Use ConPty' on and off, same result.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BroJenuel picture BroJenuel  路  5Comments

clairernovotny picture clairernovotny  路  6Comments

Loreno10 picture Loreno10  路  5Comments

Mystic8b picture Mystic8b  路  4Comments

DRSDavidSoft picture DRSDavidSoft  路  7Comments