如何在Hyperterm中设置自定义背景图像

jus*_*ris 4 hyperterm

我正在尝试从当前使用的iTerm切换到Hyperterm。但是我在终端中有一个自定义的背景图片,我想继续在新终端中使用它。

backgroundColor到目前为止,我仅在选项中找到,但与背景图片无关。

jus*_*ris 6

经过对Github的讨论,我找到了解决方案。将以下选项添加到您的配置文件中:

module.exports = {
  css: `
    .terms_terms {
      background: url(file://path-to-file) center;
      background-size: cover;
    }
  `,

  termCSS: `
    x-screen {
      background: transparent !important;
    }
  `
};
Run Code Online (Sandbox Code Playgroud)

希望它对其他人有帮助。


vru*_*noa 5

我设法改变它使用

// custom css to embed in the main window
css: `
  .terms_terms {
    background: url(file://<path-to-image>) center;
    background-size: cover;
  }
  .terms_termGroup {
    background: rgba(0,0,0,0.7) !important
  }
`
Run Code Online (Sandbox Code Playgroud)

~/hyper.js里面

使用x-screen对我们不起作用