-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't set background color for terminal #29
Comments
After doing a little investigation into this, we don't think that it is a problem with the Termonad code, or the gi-vte library (since it is a relatively thin wrapper), but instead with the VTE library. It would be a good idea to testing this out with the latest version of the VTE library and seeing if it still doesn't work. This should be relatively easy using If it is still broken, then we should create an issue on the VTE repo reporting it and asking what to do here. In the meantime, the documentation for |
Hi, it seems nobody is working on this as well as well as on #73. I've looked into this code terminalSetColors vteTerm Nothing Nothing . Just
=<< traverse toRGBA (paletteToList . palette $ colourConf)
-- PR #28 / issue #29: Setting the background colour is broken in gi-vte or VTE. If
-- this next line is called, then you are no longer able to set the
-- background color using the palette.
-- terminalSetColorBackground vteTerm =<< toRGBA (backgroundColour colourConf)
terminalSetColorForeground vteTerm =<< toRGBA (foregroundColour colourConf) The problem seems to be that even if you don't specify backgroundColor in your config it just sets the colour from default config which happens to be black. If you put |
@dakotaclemenceplaza Thanks a lot for looking into this. How would you recommend fixing it? Just switching the order to Would you be able to send a PR fixing this? (And hopefully updating the datatype and documenation on |
I'm not sure yet how exactly to make it better, at the very least the point is to use default config only if there are no others. I'll try to think about it more and then fix it. |
I sent the PR. |
@LSLeary implemented the ability to set the colors for the terminal in #28.
However, it looks like there is a problem with setting the background color of the terminal. He's not sure whether this is a problem in his own code, or gi-vte, or the VTE library itself.
The text was updated successfully, but these errors were encountered: