<?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.nextline</id>
		<title>Journal.nextline - 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.nextline"/>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.nextline&amp;action=history"/>
		<updated>2026-05-01T05:01:00Z</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.nextline&amp;diff=1221&amp;oldid=prev</id>
		<title>Ximan: Created page with &quot;== Calling Pattern == Call  local j = sl.journal() later  local r1,r2,r3 = j.nextline([split]) Argument  split (optional) is a boolean, defaults to false Results  r1 is a string,...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.easyuo.com/openeuo/wiki/index.php?title=Journal.nextline&amp;diff=1221&amp;oldid=prev"/>
				<updated>2011-01-09T03:09:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Calling Pattern == Call  local j = sl.journal() later  local r1,r2,r3 = j.nextline([split]) Argument  split (optional) is a boolean, defaults to false Results  r1 is a string,...&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 r1,r2,r3 = j.nextline([split])&lt;br /&gt;
Argument&lt;br /&gt;
 split (optional) is a boolean, defaults to false&lt;br /&gt;
Results&lt;br /&gt;
 r1 is a string, the next unread line of the journal&lt;br /&gt;
 r2 is a number, the color&lt;br /&gt;
 iff split is true then&lt;br /&gt;
 r3 is the name split from the beginning of the line, if any&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;
Nextline checks to see if there are more journal messages, and if so, copies them to the internal store.  If any of the messages in the internal store haven't been previously been read by nextline (or skipped over via [[journal.mark|mark]]), then nextline returns the next unread message.&lt;br /&gt;
&lt;br /&gt;
Nextline, along with [[journal.clear|clear]] and [[journal.refresh|refresh]], 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.mark]]&lt;br /&gt;
&lt;br /&gt;
* [[journal.refresh]]&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>