Hyper: Ghosting in console when more than one tab is open and semitransparent background is used.

Created on 2 Dec 2016  路  7Comments  路  Source: vercel/hyper

Issue

Whenever I have two tabs open, you can see the content of the other faded, but it doesn't happen all the time and I don't know a way to reproduce it 100% for sure.

Example images attached.

ghosting

ghosting2

Most helpful comment

Ah, I found the issue! It's caused by the window having a shadow on macOS. If you set the window to not have a shadow it resolves the issue; you may do like below:

exports.onWindow = win => {
  win.setHasShadow(false);
};

Shameless Self-Promotion: I created hyper-custom-plugins that can fix this pretty easily with the configuration below.

module.exports = {
  config: {
    customPlugins: {
      callback: ({ hooks }) => {
        hooks.onWindow = win => win.setHasShadow(false);
      },
    },
  },
  plugins: [
    'hyper-custom-plugins'
  ],
};

All 7 comments

Same happens to me. Same OS and app version. The only difference is I have the opacity at rgba(0,0,0,0.8). Wierd.

edit It happens regardless of multiple tabs too.

It happens after resizing the terminal on my machine.

  1. Set background to have some alpha transparency
  2. Open Hyper.app
  3. Open another tab
  4. Resize window
  5. Switch back to first tab

Ah, I found the issue! It's caused by the window having a shadow on macOS. If you set the window to not have a shadow it resolves the issue; you may do like below:

exports.onWindow = win => {
  win.setHasShadow(false);
};

Shameless Self-Promotion: I created hyper-custom-plugins that can fix this pretty easily with the configuration below.

module.exports = {
  config: {
    customPlugins: {
      callback: ({ hooks }) => {
        hooks.onWindow = win => win.setHasShadow(false);
      },
    },
  },
  plugins: [
    'hyper-custom-plugins'
  ],
};

@dfrankland Thanks! It works.

@dfrankland works perfectly. I do think there should be a solution that doesn't require a plugin. I tried fooling around with settings related to transparency on electron, but it doesn't make a difference.

Gonna look into the resizing next.

That doesn't really fix it for me. When I click on a window, the ghosted text goes away. But then when I shift focus to another window, it returns. Since I run on 2 screens and am often watching the terminal while I do something on the other screen, that is annoying.

Also, when I bring the machine back on after sleep, the ghosting is there all the time, whether I have focus on the window or not and I have to quit and restart the app to get rid of it.

Hey there, please try again with the new Hyper v2 release and open a new issue if the problem stills exists. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stan-stripe picture stan-stripe  路  3Comments

cilice picture cilice  路  3Comments

eoinmurray picture eoinmurray  路  3Comments

ghost picture ghost  路  3Comments

ConstantinChirila picture ConstantinChirila  路  3Comments