Menu

Colors, Bold and Underline

Help
2003-04-24
2004-01-07
  • Nobody/Anonymous

    Hello,

    First I just want to really say good job to the developers of SmartIRC, been looking for something like this for awhile.

    Now to my question. I am wondering is anyone can set my on the right path to getting colors, bold and underline in my output to IRC. I havn't played with it much yet, but I hoping someone else can maybe give me all the code for it, or just point me in the right direction to find out myself.

    Matt

     
    • Nobody/Anonymous

      As far as I know, IRC protocol does not contain any codes like this. You can do some progress, but tehn it will be coded to the message you sent, and it will be client-dependent.

      You should decide which client control codes do you want to use (if you want this at all) and then check that client's help file or developer info, how can you get the codes working (for example mIRC has something like this:asc(3) colorcode text; asc(31)text =underline, and so on).

       
      • Mirco Bauer

        Mirco Bauer - 2003-04-25

        I fully agree with this, SmartIRC only implements features that are defined in the IRC RFC, colors are like the other nobody poster (btw I hate nobodys I dont know who they are...) already said a client implementation.... Also colors are usualy bad, brakes many clients...

         
    • Nobody/Anonymous

      The previous nobody was me. The one with the MOTD, remember? :-) MOTD request is running as test now on my page and I will put on fully live with the next upgrade. Btw, do you have a logo or something, what I can put on my page that I'm using your cool script? :-)

      Horcsog nobody :-)

      PS: I hate to register everywhere, where I want to ask or say something. If you are interested in a lot of stuff, it means a lot of registration. :-(

       
    • Nobody/Anonymous

      OK,

      I know that colors are client side, but I was wondering how I can add them to my message. I will try the asc() function and see how that works out.

      Matt

       
    • Nobody/Anonymous

      argh, i tried to register, but couldn't do it at the moment... i'll register later on today..

      anyways. I found out that at least the character controlling mIRC colors is ^C, inverted-C, or whatever you want to call it... it is the character you type in UNIX by pressing ctrl-c... it's ordinal number is 3, so you could trigger it by chr(0x03);

      I'm not entirely sure how bulletproof that is, but with a fast check, it worked as it should with me just fine...

      - Henrik Paul

       
    • Wild Bill

      Wild Bill - 2003-08-11

      I use the bold character in my bot, so I can help you there. What I do is I open a file that somebody sent me with the bold character in it (since I can't seem to paste it anywhere without GTK interfaces turning it into a ?), store that in a global variable, and retrieve it for every message I want to send (eg, sending "This is {$bold}BOLD{$bold}, yay!" would bold the text between the {$bold}s).

      Here's the file: http://wildbill.purezc.com/junk/bold.txt

      I don't have the underline or color characters though... sorry.

       
    • Rick La Charité III

      Bold -> chr(2)
      Color -> chr(3)
      Underline -> chr(31)
      Reverse -> chr(22)
      Reset -> chr(15)

      These are the 'standard' color ctrl characters.

       

Log in to post a comment.