more.c

foundation2_fluffos_v1/lib/secure/cmds/creator/more.c · 593 B

From the archive foundation2_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*    /secure/cmds/creator/more.c
 *    from the Nightmare IVr2 Object Library
 *    more FILE
 *    created by Descartes of Borg 951104
 */

#include <lib.h>

inherit LIB_DAEMON;

mixed cmd(string str) {
    if( !str || str == "" ) return "Syntax: <more FILE>";
    return (mixed)this_player()->eventPage(str);
}

string GetHelp(string str) {
    return ("Syntax: <more FILE>\n\n"
	    "Pages through the file you name.  While inside the pager, you "
	    "have access to the following commands:\n" +
	    (string)LIB_PAGER->GetHelp("pager") + "\n\n"
	    "See also: cat, ed, head, tail");
}

Site Stats

Snippets: 1791
Codebases: 571