<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.easyuo.com/openeuo/wiki/index.php?action=history&amp;feed=atom&amp;title=Journal.refresh</id>
		<title>Journal.refresh - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.easyuo.com/openeuo/wiki/index.php?action=history&amp;feed=atom&amp;title=Journal.refresh"/>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.refresh&amp;action=history"/>
		<updated>2026-05-13T19:53:21Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.refresh&amp;diff=1224&amp;oldid=prev</id>
		<title>Ximan: /* Calling Pattern */</title>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.refresh&amp;diff=1224&amp;oldid=prev"/>
				<updated>2011-01-09T03:19:33Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Calling Pattern&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 03:19, 9 January 2011&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-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; local a,b,c = j.refresh()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; local a,b,c = j.refresh()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Results&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Results&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; a is a number, the number of new lines since last refresh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&amp;#160; a is a number, the number of new lines since last refresh &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or clear&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; b is a number, the total number of lines in the journal&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; b is a number, the total number of lines in the journal&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; c is a number, the number of lines unread since last mark or nextline call&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; c is a number, the number of lines unread since last mark or nextline call&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ximan</name></author>	</entry>

	<entry>
		<id>http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.refresh&amp;diff=1219&amp;oldid=prev</id>
		<title>Ximan: Created page with &quot;== Calling Pattern == Call  local j = sl.journal() later  local a,b,c = j.refresh() Results  a is a number, the number of new lines since last refresh  b is a number, the total n...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.refresh&amp;diff=1219&amp;oldid=prev"/>
				<updated>2011-01-09T02:53:58Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Calling Pattern == Call  local j = sl.journal() later  local a,b,c = j.refresh() Results  a is a number, the number of new lines since last refresh  b is a number, the total n...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Calling Pattern ==&lt;br /&gt;
Call&lt;br /&gt;
 local j = sl.journal()&lt;br /&gt;
later&lt;br /&gt;
 local a,b,c = j.refresh()&lt;br /&gt;
Results&lt;br /&gt;
 a is a number, the number of new lines since last refresh&lt;br /&gt;
 b is a number, the total number of lines in the journal&lt;br /&gt;
 c is a number, the number of lines unread since last mark or nextline call&lt;br /&gt;
&lt;br /&gt;
== Example == &lt;br /&gt;
&lt;br /&gt;
 local j = sl.journal()&lt;br /&gt;
 local e,line,col,name = &amp;quot;&amp;quot;,&amp;quot;&amp;quot;,0,&amp;quot;&amp;quot;&lt;br /&gt;
 local start,color = 3,946&lt;br /&gt;
 while true do&lt;br /&gt;
   local new,total,unread = j.refresh()   &lt;br /&gt;
   if unread &amp;gt; 0 then&lt;br /&gt;
     line = &amp;quot;&amp;quot;&lt;br /&gt;
     local tot,ur = j.count()&lt;br /&gt;
     print(tostring(tot)..' '..tostring(ur))&lt;br /&gt;
     while ur &amp;gt; 0 do&lt;br /&gt;
       line,col,name = j.nextline(true)&lt;br /&gt;
       print(tostring(name)..'|'..tostring(line)..'|'..tostring(col))&lt;br /&gt;
       tot,ur = j.count()&lt;br /&gt;
     end&lt;br /&gt;
     print(sl.exkeyvalstr(j.gmatchcolor(start, color, 'c(ur)')))&lt;br /&gt;
     start = tot + 1&lt;br /&gt;
   end&lt;br /&gt;
   wait(50)&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
 -&amp;gt; 8 8&lt;br /&gt;
    |Login confirm on RunUO TC|55&lt;br /&gt;
    |Welcome to Ultima Online!|0&lt;br /&gt;
    |Welcome, ximansu! There is currently 1 user online, with 100021 items and 2419 mobiles in the world.|946&lt;br /&gt;
    |Queuing action request 2... 1.6 seconds left.|173&lt;br /&gt;
    |Chat is not currently supported.|946&lt;br /&gt;
    |Finished 3 queued actions in 1.4 seconds.|173&lt;br /&gt;
    |The world is saving, please wait.|53&lt;br /&gt;
    |World save complete. The entire process took 0.2 seconds.|53&lt;br /&gt;
    table keys:values = {&lt;br /&gt;
    1:table keys:values = {&lt;br /&gt;
     1:ur,&lt;br /&gt;
     },&lt;br /&gt;
    2:table keys:values = {&lt;br /&gt;
     1:ur,&lt;br /&gt;
     },&lt;br /&gt;
    linenums:table keys:values = {&lt;br /&gt;
     1:3,&lt;br /&gt;
     2:5,&lt;br /&gt;
     },&lt;br /&gt;
    count:2,&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Refresh checks to see if there are more journal messages, and if so, copies them to the internal store, returning the number of new messages, the total number of messages, and the number unread since the last call to mark or nextline.&lt;br /&gt;
&lt;br /&gt;
Refresh, along with [[journal.clear|clear]] and [[journal.nextline|nextline]], are the only methods which force an update to the internal store.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib]&lt;br /&gt;
&lt;br /&gt;
* [[journal]]&lt;br /&gt;
&lt;br /&gt;
* [[journal.clear]]&lt;br /&gt;
&lt;br /&gt;
* [[journal.nextline]]&lt;br /&gt;
&lt;br /&gt;
* [[UO.GetJournal]]&lt;br /&gt;
&lt;br /&gt;
* [[UO.ScanJournal]]&lt;/div&gt;</summary>
		<author><name>Ximan</name></author>	</entry>

	</feed>