How to set custom background image in Hyperterm

*爱你&永不变心* 提交于 2020-12-31 05:32:28

问题


I am trying to switch to Hyperterm from iTerm that I am currently using. But I had a custom background image in my terminal and I'd like to keep having this in new terminal.

I found only backgroundColor in options so far, but nothing about background image.


回答1:


After some discussion on Github, I have found a solution. Add the following options into your config file:

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

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

Hope it helps for somebody else.




回答2:


I manage to change it using

// 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
  }
`

inside ~/hyper.js

Using x-screen didnt work for we



来源:https://stackoverflow.com/questions/38795369/how-to-set-custom-background-image-in-hyperterm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!