Hyper: git bash clear command not working on windows again!

Created on 9 May 2019  路  16Comments  路  Source: vercel/hyper

Issue

There was a well-known issue with clear command with bash on windows. It seems with v3 there is another issue related to this.

image

When I write clear it does clear some upper parts of the terminal but not all of it. I was using this config with v2, and everything was working as expected.

shell: 'C:\\Program Files\\Git\\git-cmd.exe',
shellArgs: ['--command=usr/bin/bash.exe', '-l', '-i'],
env: { TERM: 'cygwin' },

UPDATE: I noticed when I'm facing a situation like the above picture, Resizing the terminal will clear the bottom parts as well.

Most helpful comment

Do you guys have the WebGL renderer enabled?

The clear command works for me, I'm on Windows 10, Hyper 3.0.2, using Git Bash. I've got the WebGL renderer enabled.

All 16 comments

I suspect this is because Hyper is using the default config now. Hyper 3 uses a different config location and ships with a default config, effectively ignoring settings from the old config. https://github.com/zeit/hyper/issues/3605

Try copying your old config to the new location as described in that issue.

I set up my .hyper.js setting from scratch and get the same issue.

gif

@spences10 can you confirm that you've updated the config in the new location? I'm using Hyper 3 with Git Bash, and clear seems to work after I've re-applied my config.

@SidneyNemzer yes, confirmed. So setting up from scratch would be using the shortcut Ctrl+, to open the configuration file and edit it from there, like you would if you were setting up from scratch (like a fresh install with no preconfigured options).

@SidneyNemzer No, as you can see (themes and fonts are not default), I already re-applied my old config.

Do you guys have the WebGL renderer enabled?

The clear command works for me, I'm on Windows 10, Hyper 3.0.2, using Git Bash. I've got the WebGL renderer enabled.

@SidneyNemzer Yes. I have WebGL enabled. Sharing .hyper.js file is part of the issue template. You can easily see my config in the mentioned gist. Also, I think you made a typo by saying you are using Hyper 1.0.2.

I noticed when I'm facing this problem, Resizing the terminal will clear the bottom parts as well.

Do you guys have the WebGL renderer enabled?

I haven't touched that setting so mine is whatever the default is.

I did a fresh install today. No issues with clear

My Settings with win10 and Hyper.app version: 3.0.2:

    shell: 'C:\\Program Files\\Git\\git-cmd.exe',
    shellArgs: ['--command=usr/bin/bash.exe', '-l', '-i'],
    env: { TERM: 'cygwin'},

Honestly i still can't clear properly.

What versions of Git Bash is everyone using? I just remembered that I'm using an older version because the newer one had issues with Hyper.

$ bash --version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ git --version
git version 2.14.1.windows.1

What versions of Git Bash is everyone using? I just remembered that I'm using an older version because the newer one had issues with Hyper. (I'll edit this with my version when I get to my home PC).

@SidneyNemzer I believe it's not related to git bash because when I force re-render the terminal by minimizing and maximizing the window or resizing it, It'll get entirely clear.

@rob32 I also uninstalled and reinstalled the latest version but still, the problem exists.

This is happening to me with Bash on Windows 10. I'm using Hyper 3.0.2. I uninstalled and reinstalled Hyper and the problem still persists.

My main problem is the residue after executing htop.

鎹曡幏

But when I merged this code change, it worked fine.

When it detects my input, it draws the full screen.

image

image

Now, if you don't compile by yourself, you need to wait for upstream updates.

Test again with a canary CI build please

Was this page helpful?
0 / 5 - 0 ratings

Related issues

legomushroom picture legomushroom  路  3Comments

rauchg picture rauchg  路  3Comments

yvan-sraka picture yvan-sraka  路  3Comments

weabot picture weabot  路  3Comments

juicygoose picture juicygoose  路  3Comments