4

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

backgroundColor到目前为止,我只在选项中发现,但没有关于背景图像。

4

2 回答 2

6

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

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

  termCSS: `
    x-screen {
      background: transparent !important;
    }
  `
};

希望它对其他人有所帮助。

于 2016-08-13T12:35:03.000 回答
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
  }
`

~/hyper.js里面

使用x-screen没有为我们工作

于 2016-12-26T22:21:08.990 回答