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
Hex color messages are not displayed properly #2025
Comments
Hi, Hex color codes (code 0x04 in messages) is not supported, so for me it's not a bug, but a feature request. Or maybe you mean WeeChat should just ignore these codes and display properly without colors, as it's not supported? If it's OK for you, I'll update the label accordingly and check how it can be implemented: it shouldn't be that hard, WeeChat has already functions to map hex color codes to internal colors. |
That would be great, thanks!
|
This is made using standard color code '\x04' followed by text color (RGB as hexadecimal) and optional background (RGB as hexadecimal).
It's now implemented, your feedback is welcome, whether it works well or not! |
works for me! |
Hi, thanks for taking the time to fix this!
It's now implemented, your feedback is welcome, whether it works well or not!
Kinda works for me.
I use glitter.py, so I tested this by typing the following messages
```
***testy test***
***second test***
***a test with many words***
```
The output I got was
```
testytest
secondtest
atestwithmanymanywords
```
With the spaces missing, though the text is coloured correctly.
There is also a light background color, which for my dark-mode themed
terminal is kind of ugly, though I'm not sure if this is a feature for
light themed terminals and I didn't enable a setting.
|
Pressing the up arrow also gives me
Which when send output the same colorful text that was originally sent. Though that might just be glitter.py |
If there is a light background in messages, that means the background color was forced. Can you try with a default config and just the script glitter.py? Anyway I think this problem is not related to the RGB color feature just added. |
Also check your value of option |
I moved the .config/weechat folder somewhere else and installed
glitter.py and I still get the light background and missing spaces.
Here is my irc.color.mirc_remap
irc.color.mirc_remap string "1,-1:darkgray"
To clarify in case it matters, I built from source from this archive
with the voidlinux template
https://github.com/weechat/weechat/archive/f16857fc3db2d83e7c355c16016f79e534d381ad.tar.gz
|
Just moving .config/weechat is not enough (for example scripts are in another directory, so they'll be still loaded). It's not even needed to move directories to test another config, you can run |
Opsy, didn't know that.
I've ran weechat -t and I am still experiencing the same issue.
Here are the scripts and plugins I have loaded right now.
Scripts loaded:
ia glitter.py 0.1 (Replaces ***text*** you write with rainbow text)
Plugins loaded:
typing: Typing status of users
fifo: FIFO pipe for remote control
perl: Support of perl scripts
exec: Execution of external commands in WeeChat
irc: IRC (Internet Relay Chat) protocol
python: Support of python scripts
relay: Relay WeeChat data to remote application (irc/weechat protocols)
trigger: Text replacement and command execution on events triggered by WeeChat/plugins
fset: Fast set of WeeChat and plugins options
script: Script manager
xfer: DCC file transfer and direct chat
lua: Support of lua scripts
charset: Charset conversions
buflist: Buffers list
alias: Alias commands
logger: Log buffers to files
|
I'm not able to reproduce, here's what I did, using my own IRC test server, running locally:
Then I send this text:
The result is: |
Actually, I have a complaint: in Foot with |
Actually, the color And if I try IRC colors 04 and 05 I have same result (there's a difference between both reds on this screenshot): Note that RGB colors are directly mapped to terminal colors (0-255) and not IRC colors, so more colors can be used. |
Ack, it must be my terminal then |
Bug summary
Messages that use hex color codes do not display properly
Steps to reproduce and Current behavior
The message "***Does this look fancy***?" (using gitter.py) sent gets sent back as
when using matrix2051, which decodes the following message
Expected behavior
Colorful text
Additional information
I was told to link this
https://modern.ircdocs.horse/formatting#hex-color
The text was updated successfully, but these errors were encountered: