-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
bash clear not clearing #169
Comments
I can confirm, but I will be unable to do anything about it for 10 days. Maybe you have time to investigate a bit more? |
I have both the time and the desire, but not a clue where to start :/ it affects the mintty variant too so presumably it isn't a console thing, I'll err hit Google a bunch :/ |
Identical experience here with the screen not clearing (clean install, no bashrc). I've also been relying on a cls alias and would be willing to live with it if not for vim's being affected. Typically, I get residual detritus from the shell showing up 'behind' whatever I'm editing in a newly launched vim buffer (currently using an autocmd to clear). For what it's worth, the issue was also present for me in the version before this release candidate (2.4.1?) -- but only in ConEmu. To clarify, mintty was actually working fine in that version as was windows cmd when I'd invoke bash.exe from within it. It was only in ConEmu where I saw the artifacting. Prior to stumbling upon this thread, I was convinced it had something to do with the alternative screen buffer (and my own ignorance when configuring ConEmu). A few folks mentioned similar issues, last year, on Maximus5's old google code page (one example here). Thanks all for looking into this matter and ciaranj for raising it. |
This comment was marked as abuse.
This comment was marked as abuse.
@ciaranj This is what I would do if I were you, in this order:
|
It's the problem of clear.exe |
@lygstate this analysis is incomplete. You would have to rename |
@dscho sorry, when I rename clear.exe to other name, then clear can not be invoked. This may be a upstream msys2 issue. |
Cheers @dscho I'll aim to investigate shortly |
So, yes. In git 1.9.x TERM == cygwin. In git 2.x it is set to xterm-256color. If I set it to 'cygwin' in 2.x all is well in the world again. (I tried ansi as suggested in #175 but whilst this did fix clear and improve vim a bit vim still appeared to overwrite the console. cygwin however behaves exactly as expected) |
I'm wondering if it is related to d4e943c ? |
:( Just spent an hour fighting the installer build process to test that theory, but every installer I build runs (hangs until I kill a launched ssh-agent/ssh-add process) and completes but leaves me with a non-functional git-bash.exe (when clicked nothing appears to happen.) I don't think I can progress this if I can't build an installer :/ |
Strange observation and probably a red herring, but I found that |
I am almost certain of it. Will test. |
Confirmed! |
result. Still not sure why I can't successfully build installers :( |
@ciaranj if you cannot build the installers, please open a new ticket and paste the console log there. |
I don't want to take this bug off-track, but I can build an installer, but the resulting installer when it completes leaves me with an installation that is broken (git-bash.exe does nothing when clicked.) I don't have sufficient detail to raise a bug on the back of this :/ |
Hmm. I fear we have to introduce a debug mode into the Git wrapper... Did you build the |
Just catching up on the end result of #96 (awesome stuff btw!) I imagine this is just a config issue combined with lack of experience on my part (the horror!) but 'clear' does not work as I expected in the cmd.com style bash terminal. It appears to reset the cursor back to the top of the visible area, but not actually cleanse the screen of any existing characters ('reset' does however cleanse the screen too)
(If I make the following alias, cls does behave as I expect)
alias cls='echo -ne "\033c"'
Potentially related but VI doesn't respect the cursor keys either?
Hopefully this is just a configuration issue, but if it is at least that response may help future issue visitors ;)
The text was updated successfully, but these errors were encountered: