Color MOTD
Moderator: Supporters
-
- Posts: 40
- Joined: Sat Mar 06, 2004 9:42 am
- Location: Netherland (Amsterdam)
- Contact:
Color MOTD
Hello,
I admin an Unreal3.2RC ircd server. In the unrealircd.conf i have specified a motd.ircd textfile to be used as the motd file. My question is how to add colors to this motd, in order for it to be shown in color to all users.
Greets.
I admin an Unreal3.2RC ircd server. In the unrealircd.conf i have specified a motd.ircd textfile to be used as the motd file. My question is how to add colors to this motd, in order for it to be shown in color to all users.
Greets.
Let me think about it
If you have Windows, as far as I know the UnrealIRCd's wircd has a built-in editor that supports colors and you can edit MOTD files in it. From the other hand, I've never seen any MOTD editors for *NIX. The only way I can suggest is to write your MOTD from line to line in an IRC client and paste the lines into the MOTD file. There should be an easier solution, thought.
-
- Posts: 40
- Joined: Sat Mar 06, 2004 9:42 am
- Location: Netherland (Amsterdam)
- Contact:
-
- Posts: 40
- Joined: Sat Mar 06, 2004 9:42 am
- Location: Netherland (Amsterdam)
- Contact:
I have tryed this too, but the unix codes are not the same with the mIRC one's.
I have edit a line of text using mIRC and copy/past it in the MOTD file, after "/rehash" you get black squiars.
And some form of giberish text, and than my text but there are no color's.
Perhaps i am asking to much.
I have edit a line of text using mIRC and copy/past it in the MOTD file, after "/rehash" you get black squiars.
And some form of giberish text, and than my text but there are no color's.
Perhaps i am asking to much.
Let me think about it
-
- Former UnrealIRCd head coder
- Posts: 811
- Joined: Sat Mar 06, 2004 8:47 pm
- Location: United States
- Contact:
The "codes" have nothing to do with the OS, ASCII is ASCII regardless of whether your on Windows, Linux, or any other OS.
It sounds like your editor (my guess is pico) doesn't support the codes. Try using vi, it allows you to insert codes by using the ctrl+v sequence. For example, to insert a bold character you type ctrl+v+b for color, ctrl+v+c, and for underline, ctrl+v+_
It sounds like your editor (my guess is pico) doesn't support the codes. Try using vi, it allows you to insert codes by using the ctrl+v sequence. For example, to insert a bold character you type ctrl+v+b for color, ctrl+v+c, and for underline, ctrl+v+_
-- codemastr
What do you think about a script that converts specific formatting symbols to ASCII codes? In that way we can simply write our colored MOTDs too. I've written a simple Perl script that does the convertion, http://www.angrywolf.org/convert.pl, I think such a thing can be very helpful. What my script does is, it replaces any occurrences of ^C to an appropriate ASCII code so all colors will be displayed well on IRC clients supporting mIRC color codes, and does the same with ^B (bold), ^R (reverse), ^U (underline and ^P (plain). Any comments?
To codemastr: yeah, it has already come into my mind, thanks anyway. I've made it so carets (^) are escapable, for example, any occurrences of ^^C are replaced with ^C, and ^^ with ^. Works similarly to the printf-styled '%' formatting symbol in C.
To DeMiNe0: surely, but I find it too difficult, and still has the problem that codemastr mentioned in his last response. Anyway, thanks for you suggestion.
To DeMiNe0: surely, but I find it too difficult, and still has the problem that codemastr mentioned in his last response. Anyway, thanks for you suggestion.