I can't correctly set background and foreground colours using escape sequences. fg and bg does change. But weechat reverts back to default black and white. It seems tput does the same if asked to reset to defaults, it sets black and white as default instead of what I had set earlier.
So is there a way to change default background and foreground color such that if I tell tput to reset colors, the colors I originally set (not black and white) is restored ? Just like terminal?
Edit: How can I change default Foreground and Background colour?
Edit: This may be important. https://github.com/OliverLew/dotfiles/issues/2
Pinned Comments
ivanp7 commented on 2022-01-16 16:27 (UTC) (edited on 2022-01-16 18:24 (UTC) by ivanp7)
I have applied the proposed "configurable color palette" patch. Now the colors may be specified in the configuration file using numbered parameters
color-num=RRGGBB
.ivanp7 commented on 2021-11-27 21:50 (UTC)
I changed my mind.
$XDG_CONFIG_HOME/fbterm/fbtermrc
is now an allowed configuration location along with the old$XDG_CONFIG_HOME/fbtermrc
. Old location is used only when$XDG_CONFIG_HOME/fbterm/
does not exist.ivanp7 commented on 2021-05-20 11:46 (UTC) (edited on 2021-05-20 13:13 (UTC) by ivanp7)
To set a wallpaper in fbterm, you'll need
fbv
package (framebuffer image viewer). Execute the following instructions right before launching fbterm (works in POSIX-compliant shell like dash):ivanp7 commented on 2021-05-20 11:35 (UTC) (edited on 2021-09-25 01:37 (UTC) by ivanp7)
To enable 256 color mode properly, do
export TERM=fbterm-256color
AFTER fbterm starts and then attach to a tmux session. IfTERM
is notlinux
upon fbterm launch, it will fail. Tmux is needed because fbterm provides escape codes that differ from broadly used codes, so tmux serves as an abstraction layer.Unlike vanilla fbterm, in this version the configuration file is located at
$XDG_CONFIG_HOME/fbtermrc
or$HOME/.config/fbtermrc
ifXDG_CONFIG_HOME
is unset or empty (the original placement is$HOME/.fbtermrc
). Also, the configuration file is not forcibly recreated anymore. For default configuration, see/etc/fbterm/fbtermrc.example
.