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

Closed
Zarthus opened this issue Sep 12, 2015 · 3 comments
Closed

Support logging of IRC colours #528

Zarthus opened this issue Sep 12, 2015 · 3 comments
Assignees
Labels
feature New feature request
Milestone

Comments

@Zarthus
Copy link
Contributor

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 New feature request label Sep 13, 2015
@BlacklightShining
Copy link

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

@Zarthus
Copy link
Contributor Author

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)

@flashcode
Copy link
Member

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 grep.py. 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).

@flashcode flashcode added the in progress Someone is working on this issue label Sep 28, 2019
@flashcode flashcode added this to the 2.7 milestone Sep 28, 2019
@flashcode flashcode removed the in progress Someone is working on this issue label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants