我正在尝试从当前使用的iTerm切换到Hyperterm。但是我在终端中有一个自定义的背景图片,我想继续在新终端中使用它。
backgroundColor到目前为止,我仅在选项中找到,但与背景图片无关。
经过对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)
希望它对其他人有帮助。
我设法改变它使用
// 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对我们不起作用