<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/18429" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2011-04-16T19:07:11-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/18429</id>

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-04-16T19:07:11-04:00</updated>

		<published>2011-04-16T19:07:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96674#p96674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96674#p96674"/>
		<title type="html"><![CDATA[Re: using special characters in text output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96674#p96674"><![CDATA[
<blockquote class="uncited"><div>working on a small script to output text to an irc channel with eggdrop.<br><br>Is it possible to force the output to contain the \ as a character as opposed to it prefixing an actual code, such as a color code?<br><br>I would like the output to appear as: /!\ some other text follows<br><br>Thanks for any help, btw, I did try searching, but couldnt find any pointers.</div></blockquote>The problem is that character is a "literal" escape, "". It has special meaning in it's \ form. So what you can do is use the power of substitution and double-quotes to your advantage. The hexadecimal character code for \ is 5c. So doing something like this, makes it no longer a special character causing issues, and using it with double-quotes allows it to return to the character it represents through substitution.<br><br>This is how everyone will suggest doing it, like willyw's advice above. But not knowing tcl syntax, it's golden rules, and what an escape can cause. Using this can/will lead to several issues.<div class="codebox"><p>Code: </p><pre><code>putserv "privmsg #channel : /!\\ some other text follows  " </code></pre></div>Using substitution to your advantage, yields the code below.<div class="codebox"><p>Code: </p><pre><code>putserv "privmsg #channel : /!\x5c some other text follows  "</code></pre></div>The beauty of doing this, is that you no longer need to care what your escape may influence. Wherever you would normally use "" within your double-quotes, instead use "\x5c" and it solves the problem. The same can be done for any problem characters, and this also solves matching issues.<br><br>The code below, adds underlines around your triangle, which will give it the bottom it lacks. Try the code below. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><div class="codebox"><p>Code: </p><pre><code>putserv "privmsg #channel :\037/!\x5c\037 some other text follows  " </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Apr 16, 2011 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-04-16T11:28:38-04:00</updated>

		<published>2011-04-16T11:28:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96672#p96672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96672#p96672"/>
		<title type="html"><![CDATA[Re: using special characters in text output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96672#p96672"><![CDATA[
<blockquote class="uncited"><div>working on a small script to output text to an irc channel with eggdrop.<br><br>Is it possible to force the output to contain the \ as a character as opposed to it prefixing an actual code, such as a color code?<br><br>I would like the output to appear as: /!\ some other text follows<br><br>Thanks for any help, btw, I did try searching, but couldnt find any pointers.</div></blockquote><div class="codebox"><p>Code: </p><pre><code>putserv "privmsg #channel : /!\\ some other text follows  "</code></pre></div>Like that?<br><br>When I tried it, it looked like what you described.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 16, 2011 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[renegad3]]></name></author>
		<updated>2011-04-16T10:34:34-04:00</updated>

		<published>2011-04-16T10:34:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96671#p96671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96671#p96671"/>
		<title type="html"><![CDATA[using special characters in text output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96671#p96671"><![CDATA[
working on a small script to output text to an irc channel with eggdrop.<br><br>Is it possible to force the output to contain the \ as a character as opposed to it prefixing an actual code, such as a color code?<br><br>I would like the output to appear as: /!\ some other text follows<br><br>Thanks for any help, btw, I did try searching, but couldnt find any pointers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11642">renegad3</a> — Sat Apr 16, 2011 10:34 am</p><hr />
]]></content>
	</entry>
	</feed>
