in reply to Re: Irssi scripting - Ifnoring Color
in thread Irssi scripting - Ignoring Color

Sorry if i didn't make that clear, Irssi is a console based irc client. It used control characters representing differnt colors to symbolize color changes.
Therefor my string  "Hello, World" when in color may end up as "H[ctrl-k],4e[ctrl-k]llo, World".
I was thinking of writing a regex to extract the color from all input but that would probabbly slow down irc a bit and i'm sure there is a better way. I would assume irssi has a method of removing color from text built in though?

Neil Archibald
- /dev/IT -

Replies are listed 'Best First'.
Re: Irssi scripting - Ifnoring Color
by Abigail-II (Bishop) on Jul 11, 2003 at 07:26 UTC
    Well, if you ask in this forum, using the regex is the most likely answer to get. This being a Perl forum, and not a specific application forum. This is not a good place to ask questions about the feature set of the API of 'irssi'.

    Of course, you could always modify the source of 'irssi' and take out the colouring bits.

    Abigail

      Ok point taken, i'm sorry.

      I decided to post here after noticing that the author of the irssi scripting tutorial on the official site was a member of perlmonks.
      In hindsight this may not have been the best basis for justifying this post.

      Neil Archibald
      - /dev/IT -