Skip to content
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

Support logging of IRC colours #528

Zarthus opened this issue Sep 12, 2015 · 3 comments


Copy link

@Zarthus Zarthus commented Sep 12, 2015

It would be nice to have a setting that ensures colours do not get removed in the logging.

Some usecases:

  • Paste messages exactly as they were received
  • Ban a specific annoying realname that has a weird and/or annoying colour combination that is no longer available in WHOWAS.
  • Easier grepping when you know a message you're looking for has used colours.
@flashcode flashcode added the feature label Sep 13, 2015

This comment has been minimized.

Copy link

@BlacklightShining BlacklightShining commented Sep 25, 2015

Would this just cover colors? I'd like my logs to include all formatting—really the message as it was received, like @Zarthus said.


This comment has been minimized.

Copy link
Contributor Author

@Zarthus Zarthus commented Sep 25, 2015

A good point - yes, the intention is to "log the message as it is", just in a weechat-readable logging method. (i.e. no raw irc message logging, but without weechat stripping things from the message either)


This comment has been minimized.

Copy link

@flashcode flashcode commented Sep 28, 2019

I'll add an option to write log files with ANSI color codes, and then display of backlog will be in color by default if this option is enabled (#621).
If ANSI color codes are written, the log file can be read with less -R filename, and it will probably break scripts reading log files like So they'll need an update to support ANSI color codes.

I'll add a modifier "color_encode_ansi", that converts WeeChat colors to ANSI colors (a similar modifier "color_decode_ansi" already exists to convert ANSI colors to WeeChat colors).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.