<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=User%3AKebap%2FManual%3Aecho</id>
	<title>User:Kebap/Manual:echo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=User%3AKebap%2FManual%3Aecho"/>
	<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:echo&amp;action=history"/>
	<updated>2026-06-08T15:04:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:echo&amp;diff=4571&amp;oldid=prev</id>
		<title>Kebap at 19:13, 5 June 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:echo&amp;diff=4571&amp;oldid=prev"/>
		<updated>2018-06-05T19:13:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:13, 5 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==echo==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;echo([miniconsoleName or labelName], text)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;echo([miniconsoleName or labelName], text)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:This function appends text at the end of the current line.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:This function appends text at the end of the current line.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-4529:rev-4571 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kebap</name></author>
	</entry>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:echo&amp;diff=4529&amp;oldid=prev</id>
		<title>Kebap: Created page with &quot;;echo([miniconsoleName or labelName], text) :This function appends text at the end of the current line.  ;Parameters  * &#039;&#039;miniconsoleName:&#039;&#039; (optional) the miniconsole to echo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=User:Kebap/Manual:echo&amp;diff=4529&amp;oldid=prev"/>
		<updated>2018-05-29T16:16:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;;echo([miniconsoleName or labelName], text) :This function appends text at the end of the current line.  ;Parameters  * &amp;#039;&amp;#039;miniconsoleName:&amp;#039;&amp;#039; (optional) the miniconsole to echo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;echo([miniconsoleName or labelName], text)&lt;br /&gt;
:This function appends text at the end of the current line.&lt;br /&gt;
&lt;br /&gt;
;Parameters &lt;br /&gt;
* &amp;#039;&amp;#039;miniconsoleName:&amp;#039;&amp;#039; (optional) the miniconsole to echo to, or:&lt;br /&gt;
* &amp;#039;&amp;#039;labelName:&amp;#039;&amp;#039; (optional) the label to echo to.&lt;br /&gt;
* &amp;#039;&amp;#039;text:&amp;#039;&amp;#039; text you&amp;#039;d like to see printed. You can use \n in an echo to insert a new line. If you&amp;#039;re echoing this to a label, you can also use styling to colour, center, increase/decrease size of text and various other formatting options [http://doc.qt.io/qt-5/richtext-html-subset.html as listed here].&lt;br /&gt;
&lt;br /&gt;
See also: [[Manual:Lua_Functions#moveCursor|moveCursor()]], [[Manual:Lua_Functions#insertText|insertText()]], [[Manual:Lua_Functions#cecho|cecho()]], [[Manual:Lua_Functions#decho|decho()]], [[Manual:Lua_Functions#hecho|hecho()]]&lt;br /&gt;
&lt;br /&gt;
;Example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- a miniconsole example&lt;br /&gt;
&lt;br /&gt;
-- first, determine the size of your screen&lt;br /&gt;
local windowWidth, windowHeight = getMainWindowSize()&lt;br /&gt;
&lt;br /&gt;
-- create the miniconsole&lt;br /&gt;
createMiniConsole(&amp;quot;sys&amp;quot;, windowWidth-650,0,650,300)&lt;br /&gt;
setBackgroundColor(&amp;quot;sys&amp;quot;,255,69,0,255)&lt;br /&gt;
setMiniConsoleFontSize(&amp;quot;sys&amp;quot;, 8)&lt;br /&gt;
-- wrap lines in window &amp;quot;sys&amp;quot; at 40 characters per line - somewhere halfway, as an example&lt;br /&gt;
setWindowWrap(&amp;quot;sys&amp;quot;, 40)&lt;br /&gt;
&lt;br /&gt;
echo(&amp;quot;sys&amp;quot;,&amp;quot;Hello world!\n&amp;quot;)&lt;br /&gt;
cecho(&amp;quot;sys&amp;quot;, &amp;quot;&amp;lt;:OrangeRed&amp;gt;This is random spam with the same background\n&amp;quot;)&lt;br /&gt;
cecho(&amp;quot;sys&amp;quot;, &amp;quot;&amp;lt;blue:OrangeRed&amp;gt;and this is with a blue foreground. &amp;quot;)&lt;br /&gt;
cecho(&amp;quot;sys&amp;quot;, &amp;quot;&amp;lt;bisque:BlueViolet&amp;gt;Lastly, this is with both a foreground and a background.\n&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- a label example&lt;br /&gt;
&lt;br /&gt;
-- This example creates a transparent overlay message box to show a big warning message &amp;quot;You are under attack!&amp;quot; in the middle &lt;br /&gt;
-- of the screen. Because the background color has a transparency level of 150 (0-255, with 0 being completely transparent &lt;br /&gt;
-- and 255 opaque) the background text can still be read through.&lt;br /&gt;
local width, height = getMainWindowSize()&lt;br /&gt;
createLabel(&amp;quot;messageBox&amp;quot;,(width/2)-300,(height/2)-100,250,150,1)&lt;br /&gt;
resizeWindow(&amp;quot;messageBox&amp;quot;,500,70)&lt;br /&gt;
moveWindow(&amp;quot;messageBox&amp;quot;, (width/2)-300,(height/2)-100 )&lt;br /&gt;
setBackgroundColor(&amp;quot;messageBox&amp;quot;, 255, 204, 0, 200)&lt;br /&gt;
echo(&amp;quot;messageBox&amp;quot;, [[&amp;lt;p style=&amp;quot;font-size:35px&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;You are under attack!&amp;lt;/font&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;]])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kebap</name></author>
	</entry>
</feed>