<html><head><title> POO lib: configuration </title></head><body><center> <h3>POO Library</h3> <h1>$user configuration commands</h1> </center> Here is a set of short commands that users can use to configure their POO character -- things that fall under the rubric of "preferences" in the standard help database. <hr> <h3>@setprompt</h3> <pre>@newfunc setprompt(self,prompt) on $user if prompt == 'default': user._prompt = '<t>poo>' print "Prompt reset to the default." else: user._prompt = prompt print "Prompt set." .x @set $user.setprompt.desc = "set prompt" @setperm $user.setprompt = rc @cmd $user.@setprompt <str> calls setprompt(%1) </pre> <p><hr><h3>@markup</h3> <pre>@newfunc markup(self,kind) on $user kind = string.lower(kind) if kind == "default": del self.marksub elif kind == "vt100": self.marksub = marksub.vt100() elif kind == "plain": self.marksub = marksub.plain() elif kind == "html": self.marksub = marksub.html() elif kind == "show" or kind == "showcodes": self.marksub = marksub.showcodes() else: print "Unknown markup type. Use default, vt100, plain, html, or show." return print "Markup type set to", kind+"." .x @set $user.markup.desc = "set standard markup types" @setperm $user.markup = rc @cmd $user.@markup <str> calls markup(%1) </pre> <p><hr><h3>@linelen</h3> <pre>@newfunc at_linelen(self,len) on $user if length < 0: length = 0 if length == self.parents[0].linelen: del self.linelen else: self.linelen = length if length: print "Lines now wrap at", length, "characters." else: print "Lines are no longer wrapped." .x @set $user.linelen.desc = "set max. line length" @setperm $user.linelen = rc @cmd $user.@linelen <int> calls at_linelen(%1) </pre> <p><hr><h3>@sethome</h3> <pre>@newfunc sethome(self) on $user if self.location.owner == self or self.location.public_home: self.home = self.location print "This is now your home." else: print "This room belongs to " + self.location.owner.name \ + ", and is not a public home." .x @set $user.sethome.desc = "set home to current room" @setperm $user.sethome = rc @cmd $user.@sethome calls sethome() </pre> <hr> <h2>Help Files</h2> The text below can be copied directly into the help editor. <pre> @setprompt @setprompt <prompt> This command sets the prompt that appears at the start of every line when the POO server is ready for your input. "prompt" may be any string, or empty quotes, but it is recommended that you include <t<t>> in your prompt to turn off stray text styling. To restore the default prompt, use "@setprompt default". Example: @setprompt <t<t>> This example sets no visible prompt, but includes <t<t>> to restore normal text styling. . n @markup @markup <plain|vt100|html|show> This command is used to change the way you received styled (marked up) text. Some POO output contains markup tags which indicate bold text (etc.) If you enter the command "@markup plain", these tags will simply be stripped from the output before you see it. "@markup vt100" will convert the tags to VT100 escape sequences. "@markup html" converts the tags to HTML tags, which can be interpreted by some MUD clients. "@markup show" does no translation at all, allowing you to see the markup tags in their native POO form. This is very convenient when examining or copying descriptions for future reference. . n @linelen @linelen <int> This command sets your line length, i.e., how many characters fit on a line for your terminal or client program. If line length is unlimited (because your client automatically wraps words, for example), use "@linelen 0". The default is "@linelen 80", i.e, 80-character lines. . n @sethome @sethome @sethome declares that the room you're currently in should hereafter be considered your home room. You can return to this room at any time with the @home command. . n preferences Various commands are available to configure your character, and your interface with the POO system. @password @markup @linelen @sethome @setprompt . y </pre> <p><hr> <address> http://www.strout.net/python/poo/lib/config.html <br>Last Updated: 6/28/97 . . . . . . <a href="http://www.strout.net/">Joe Strout</a> </address> </body></html>