<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Man more - Revision history</title>
		<link>http://wiki.lostsouls.org/w/index.php?title=Man_more&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.8.2</generator>
		<lastBuildDate>Thu, 16 Apr 2026 17:18:18 GMT</lastBuildDate>
		<item>
			<title>Laine at 20:54, 11 June 2007</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_more&amp;diff=3975&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Files==&lt;br /&gt;
&lt;br /&gt;
 /def/descriptor/more.c&lt;br /&gt;
 /lib/descriptors/more.h&lt;br /&gt;
 /daemon/more.c&lt;br /&gt;
 /mod/basic/term.c&lt;br /&gt;
 /lib/display.h&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
More descriptors (also known as more session descriptors) are used to&lt;br /&gt;
contain the information associated with a 'more' (paginated) display, as&lt;br /&gt;
handled by the more daemon.  Usually you do not need to worry about this&lt;br /&gt;
level of the system at all; the standard way to display paginated text&lt;br /&gt;
is simply as follows:&lt;br /&gt;
&lt;br /&gt;
    who-&amp;gt;display(text, Display_Paginated);&lt;br /&gt;
&lt;br /&gt;
If you wished to display a paginated file, the method would be:&lt;br /&gt;
&lt;br /&gt;
    who-&amp;gt;display(file, Display_File | Display_Paginated);&lt;br /&gt;
&lt;br /&gt;
If these methods are not adequate for some reason, however, you can&lt;br /&gt;
custom-build more sessions and pass them directly to the more daemon,&lt;br /&gt;
as in the following example:&lt;br /&gt;
&lt;br /&gt;
    Daemon(&amp;quot;more&amp;quot;)-&amp;gt;more(More(([&lt;br /&gt;
        More_Type    : More_Type_Text,&lt;br /&gt;
        More_Content : some_text,&lt;br /&gt;
        More_User    : this_player(),&lt;br /&gt;
    ])));&lt;br /&gt;
&lt;br /&gt;
The method based on the display() function should be preferred whenever&lt;br /&gt;
possible.  Manual construction is mostly useful for situations where you&lt;br /&gt;
will be adding multiple more sessions simultaneously.&lt;br /&gt;
&lt;br /&gt;
The public fields of the more descriptor are for users to specify the&lt;br /&gt;
settings of more sessions.  The internal fields are used by the more&lt;br /&gt;
process to store information about the state of the session, and should&lt;br /&gt;
not be interacted with by user code.&lt;br /&gt;
&lt;br /&gt;
===Public Fields===&lt;br /&gt;
&lt;br /&gt;
More_Type: The type of content in the more session.  This is one of the&lt;br /&gt;
following:&lt;br /&gt;
&lt;br /&gt;
    More_Type_File: A file.  The More_Content field should contain the&lt;br /&gt;
    filename.&lt;br /&gt;
&lt;br /&gt;
    More_Type_Text: An arbitrary string.  The More_Content field should&lt;br /&gt;
    contains the string.&lt;br /&gt;
&lt;br /&gt;
    More_Type_Processed: Text which has already been processed through&lt;br /&gt;
    the terminal interpretation system.  This is intended solely for&lt;br /&gt;
    system use; there is no need whatsoever for users to construct more&lt;br /&gt;
    sessions of this type.  The More_Content is an array of the processed&lt;br /&gt;
    content.&lt;br /&gt;
&lt;br /&gt;
More_Content: The content to be displayed by the more session, as&lt;br /&gt;
determined by the More_Type field.&lt;br /&gt;
&lt;br /&gt;
More_User: The user object for the more session.  Required.&lt;br /&gt;
&lt;br /&gt;
More_Header: A header to show at the top of each page of the more display.&lt;br /&gt;
May be a closure, which will be called with the user as argument; the&lt;br /&gt;
closure must always return the same number of lines, or incorrect behavior&lt;br /&gt;
will result.&lt;br /&gt;
&lt;br /&gt;
More_Footer: A footer to show at the bottom of each page of the more&lt;br /&gt;
display.  May be a closure, which will be called with the user as argument;&lt;br /&gt;
the closure must always return the same number of lines, or incorrect&lt;br /&gt;
behavior will result.&lt;br /&gt;
&lt;br /&gt;
More_Done: A closure to call when the user exits all more sessions.  The&lt;br /&gt;
user will be passed as argument.  Note that if more than one of the&lt;br /&gt;
sessions specified for a given user at a given time has a More_Done&lt;br /&gt;
setting, only the More_Done of the most recently added session to define&lt;br /&gt;
one will be called.&lt;br /&gt;
&lt;br /&gt;
More_Display: The display flags (from /lib/display.h) that will be applied&lt;br /&gt;
to the terminal processing of the text.  Defaults to Display_Default;&lt;br /&gt;
there is no need to specify Display_Paginated or Display_File, as these&lt;br /&gt;
are handled implicitly.&lt;br /&gt;
&lt;br /&gt;
More_Lines: The total number of lines in the display.  Only system-internal&lt;br /&gt;
More_Type_Processed sessions need to specify this field.&lt;br /&gt;
&lt;br /&gt;
More_File: The filename the session is from, if any.  Only system-internal&lt;br /&gt;
More_Type_Processed sessions need to specify this field.  More_Type_File&lt;br /&gt;
sessions automatically set this field to the value of More_Content.&lt;br /&gt;
&lt;br /&gt;
===Internal Fields===&lt;br /&gt;
&lt;br /&gt;
More_Rows: The number of rows to paginate with.&lt;br /&gt;
&lt;br /&gt;
More_Columns: The number of columns to paginate with.&lt;br /&gt;
&lt;br /&gt;
More_Tabs: The tab stop interval to paginate with.&lt;br /&gt;
&lt;br /&gt;
More_Line: The current line within the display.&lt;br /&gt;
&lt;br /&gt;
More_Pages: The pagination information for the display.&lt;br /&gt;
&lt;br /&gt;
More_Page: The current page number within the display.&lt;br /&gt;
&lt;br /&gt;
More_Source: The string object name of the object that passed the more&lt;br /&gt;
session to the daemon.&lt;br /&gt;
&lt;br /&gt;
More_Tag: The tag value for the descriptor system.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
[[man display|display(lfun)]], [[man descriptors|descriptors(mechanisms)]]&lt;/div&gt;</description>
			<pubDate>Mon, 11 Jun 2007 20:54:30 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_more</comments>		</item>
	</channel>
</rss>