CupOmud_docs.html
CupOmud_docs.html · 44.5 KB
From the archive CupOmud_1.3_exec.zip
Download the archive « Back to the archive contents
<html>
<head>
<title>The Cup-O MUD Client</title>
<meta name="Author" content="Alex Stewart">
</head>
<body>
<div align=center>
<h1>The Cup-O MUD Client (v1.3)</h1>
<h3><a href="http://www.crl.com/~riche/">Written by Alex Stewart (Richelieu)</a> <<a href="mailto:riche@crl.com">riche@crl.com</a>></h3>
in conjunction with
<h3>The <a href="http://www.du.org">Diversity University</a> Technology Development Center</h3>
</div>
<hr>
<p align=center>(This document requires HTML-3.0 table support)</p>
<hr>
<h2 align=center>Contents</h2>
<menu>
<li><a href="#what">What is Cup-O MUD?</a></li>
<li><a href="#features">Features of the Cup-O MUD client</a></li>
<li><a href="#using">Starting and Using the Cup-O MUD Applet</a></li>
<li><a href="#setup">Integrating the Applet within a web page</a></li>
<li><a href="#params">Applet parameters</a></li>
<li><a href="#telnet">TELNET negotiation</a></li>
<li><a href="#mcp">MCP requests</a></li>
<li><a href="#notes">footnotes</a></li>
</menu>
<hr><a name="what"><h2>What is Cup-O MUD?</h2></a>
<p>The Cup-O MUD client is a fully functional client for
<a href="#muve">Multi-User Virtual Environments (MUVEs, aka MUDs, MU*s,
MOOs, etc)</a>, and other line-based text communication systems, written
in the Java programming language.</p>
<p>What this means is that you can now embed an active, real-time
connection to a MUVE directly into a web page, allowing the user to not
only interact with the system using their web browser, but also have most of
the essential features most users of modern MUVE clients simply cannot live
without (separate input/output windows, backscroll, command-recall,
and more), all without the user having to download or install a single
piece of software.</p>
<p>The design goals of Cup-O MUD were as follows:</p>
<ul>
<li>To provide a MUVE client which can take advantage of Java's
platform independence and "executable content" capabilities, to run on a
variety of systems and be automatically usable via embedding in WWW
documents and similar systems.
<li>To provide a client which is easy to use, with all of the
essential features experienced users expect, and novice users shouldn't
have to live without.
<li>To make the browser applet small and quick to load, minimizing
delay times in web page loading even over slow modem links.
<li>To make the client extensible for the future, and to provide
support for more robust/different implementations and extensions to be
downloaded and stored on the user's local machine for quicker access.
<li>To make the client freely available and modifiable, to promote
future enhancement and open, compatible systems for future developments
in the Java MUVE client world.
</ul>
<p>Users of Cup-O MUD may also notice one other design consideration in
its development. The Cup-O MUD interface has been specifically designed
to be simple and clean, without lots of buttons or graphics taking up
space on the screen which could be used instead for useful output window
area. The result is an applet which, while perhaps looking a little less
flashy, provides the optimum usability in a wide range of
applications.</p>
<hr><a name="features"><h2>Features of the Cup-O MUD client</h2></a>
<h3>Currently supported features</h3>
<ul>
<li>Multi-platform support</li>
<li>Integration with WWW pages</li>
<li>Separate input and output windows</li>
<li>Backscroll of previous output</li>
<li>Word-wrap of long lines</li>
<li>Partial output line (prompts) support</li>
<li>Optional echoing of commands in output window</li>
<li>Unlimited input line length</li>
<li>Command-recall</li>
<li>Non-echoing password input</li>
<li>Cut-and-paste<a href="#cutpastenote">*</a></li>
<li>Customizable fonts/colors/size</li>
<li>Optionally Auto-send a command on connection (auto-login)</li>
<li>Optionally ignore introductory text</li>
<li>MOO Control Protocol (MCP) support</li>
<li>Remote display-URL capability</li>
<li>TELNET-compatible</li>
</ul>
<p><a name="cutpastenote" href="#cutpastenote">*</a>: Cut and paste
currently available only through implementation-specific built-in
support in Java. May not be available or may work differently on
different platforms.</p>
<h3>Planned for the near future (roughly in order)</h3>
<ul>
<li>Local/standalone version with added features</li>
<li>Pausing of output window while scrolling back</li>
<li>Added flexibility in user interface layout</li>
<li>ANSI Color support</li>
<li>Storable user configuration</li>
<li>Better pasting ability and possibly simple local-editing</li>
</ul>
<hr><a name="using"><h2>Starting and Using the Cup-O MUD Applet</h2></a>
<p>Due to the way Java applets work, in order for the Cup-O MUD applet
to be used it must first be embedded in a web page located on the MUVE's
host. See <a href="#setup">Integrating the Applet within a web page</a>
for more information on this. Once this has been done however, from a
user's perspective encountering the web page in question, using the
Cup-O MUD client is fairly straightforward.</p>
<h3>The Cup-O MUD user interface</h3>
<p>The Cup-O MUD applet has two main components to its user interface.
A large output window comprises most of the applet's area, and is where
text received from the MUVE is displayed. This output window also has a
vertical scrollbar which can be used to scroll back through previous
lines of output. At the bottom of the output window is an input field,
where commands for the MUVE can be typed.</p>
<h3>Connecting to the MUVE</h3>
<p>When the web page containing the Cup-O MUD applet is loaded by the
web browser, Cup-O MUD automatically starts by attempting to open a
connection to the MUVE specified in its configuration parameters. While
Cup-O MUD is attempting to connect to the MUVE, the input field has a
grayed-out background and will not accept input, indicating that Cup-O
MUD is not yet connected. As soon as the connection is established, the
input field will change to the normal color and begin accepting input,
and Cup-O MUD will begin displaying output from the MUVE in the output
window.</p>
<p>Cup-O MUD stays connected to the MUVE until either the connection is
closed by the other end or the applet is destroyed. It is important to note
here the use of the term "destroyed". Simply viewing another web page
with the web browser will <em>not</em> close Cup-O MUD's connection. In
fact, it is possible to go off and look at other web resources, and then
return to a still-active Cup-O MUD session simply by hitting the "back"
button in the browser.</p>
<p>So when does the applet actually get destroyed? This depends somewhat on the web
browser being used. Under Netscape, the basic rule of thumb is that an
applet remains active as long as its page is in the "Go" list of the
browser (the list shown when the "Go" pulldown menu is selected). The
"Go" list basically just lists all of the web pages that can be gone
back to using the "back" button (or forward to using the "forward"
button). The best way to get a feel for this is to try out some things
for yourself and see how they affect the "Go" list of the browser.</p>
<p>In Netscape, if you back up (using the "back" button) and then go a different
direction (by picking a different link), the "Go" list follows the new direction and
discards anything which used to be "forward" of the current location.
If the Cup-O MUD page happened to be one of those pages which was
discarded from the "Go" list at this point, then the Cup-O MUD applet
will be destroyed and will close its connection to the MUVE. This means
that if, from the Cup-O MUD page you go "back" and then pick a new link,
it will close the Cup-O MUD connection, which can be a handy way to
close the Cup-O MUD applet if it should be necessary and isn't possible
to do otherwise (such as quitting from the MUVE) for some reason.</p>
<h3>Communicating with the MUVE</h3>
<p>Once a connection to the MUVE has been opened, Cup-O MUD will begin
displaying output from the MUVE in the output window and allow input in
the input window. Under most circumstances, the input field will
already be selected and will display a cursor. Sometimes, however,
it may be necessary to click on the input field with the mouse in order
to select it for entry. To send a command to the MUVE, simply type the
command in the input window, and press the <key>Return</key> key. The
typed line will be sent to the MUVE, and any results of the command will
appear in the output window.</p>
<p>While entering text in the input field, all of the standard editing
keys work as one might expect. The left and right arrows, home, end,
insert, delete, and so forth can all be used to edit the text of the
input line just as they might be used for any other similar text entry.
Pressing the up and down arrows allows one to recall previously typed
commands, which can then be edited and resent to the MUVE.</p>
<h3>Using the output window</h3>
<p align=center>(yet to be written)</p>
<hr><a name="setup"><h2>Integrating the Applet within a web page</h2></a>
<p>Integrating the Cup-O MUD applet within a web page is fairly easy.
It simply requires adding an <code><APPLET></code> block in the
HTML file where you would like the applet to appear. The
<code><APPLET></code> block has the following format:</p>
<pre>
<APPLET CODEBASE=<var>url</var> CODE="CupOmud.class" HEIGHT=<var>height</var> WIDTH=<var>width</var>>
<PARAM NAME=<var>name</var> VALUE=<var>value</var>>
...
<i>(other HTML which will be shown on non-Java browsers)</i>
...
</APPLET>
</pre>
<p>The <code>CODEBASE</code> attribute specifies the URL of the location
of the CupOmud.class file, and if not specified defaults to the same
location as the web page. The <code>CODE</code> attribute is required
and must be "CupOmud.class". The <code>HEIGHT</code> and
<code>WIDTH</code> attributes are also required, and may either be
specified in pixels (<code>HEIGHT=100</code>, for example) or in a
percentage of the available screen area (<code>HEIGHT=75%</code>).</p>
<p>Inside the <code><APPLET>...</APPLET></code> block are
one or more <code><PARAM></code> tags, which specify configuration
parameters for the Cup-O MUD applet. Each parameter has a name and a
value, specified with the <code>NAME</code> and <code>VALUE</code>
attributes of the <code><PARAM></code> tag. The only required
parameter for the Cup-O MUD applet is the "port" parameter, which
specifies what TCP/IP port the MUVE it is to connect to is running on.
The HTML for this would look something like:</p>
<pre>
<PARAM NAME="port" VALUE="8888">
</pre>
<p>While the "port" parameter is the only required parameter for Cup-O
MUD, there are also quite a few optional parameters which control
everything from Cup-O MUD's appearance to how it talks to the MUVE which
may be worth looking into for various applications. All of Cup-O MUD's
recognized parameters are listed in the <a href="#params">Applet
Parameters</a> section, along with the specifics of how the various
types of values are represented.</p>
<p>Some of the configuration options for the Cup-O MUD applet are
actually issues of user preference more than anything else. While in
some cases it may be acceptable simply to decide on a particular set of
parameters for all users of a particular Cup-O MUD page, more
sophisticated applications may wish to allow the user to store
configuration options on the MUVE or a related system, and generate
custom Cup-O MUD pages with user-specific parameter values depending on
who is accessing the page (the specifics of how to accomplish this are
left as an exercise for the reader <code>:)</code> ).</p>
<p>One other useful feature of the
<code><APPLET>...</APPLET></code> block is the ability to
specify a segment of HTML code which will be displayed if the page is
loaded with a web browser which doesn't support Java applets. In
addition to <code><PARAM></code> tags, other HTML can be included
between the <code><APPLET></code> and <code></APPLET></code>
tags. This HTML will be ignored by any browser which recognizes
<code><APPLET></code> tags, but any browser which doesn't
recognize them will display the enclosed HTML as part of the document.
This allows a construction like the following:</p>
<pre>
<APPLET CODE="CupOmud.class" HEIGHT=100% WIDTH=100%>
<PARAM NAME="port" VALUE="8888">
<HR>
<CENTER><B>If you were using a Java browser you would be
seeing Cup-O MUD here!</B></CENTER>
<HR>
</APPLET>
</pre>
<h3>Preloading the applet</h3>
<p>A useful feature available with the Cup-O MUD client is the ability
to "preload" the applet. This involves embedding the applet within a
previous web page (such as an introduction page), causing it to be
downloaded from the remote site while the user is reading the text of
the other page, or entering information in a web form, or whatever, but
without actually executing the client itself. This way, when the user
does move on to the page which actually uses the applet, it is already
downloaded and can be retrieved quickly from the browser's cache,
reducing the percieved delay in starting up the applet.</p>
<p>If the "preload" parameter is specified and true, the applet will be
loaded, and all the appropriate files will be fetched, but the applet
won't actually do anything. Since this will, of course, leave a big
blank spot on the screen where the applet is supposed to be, it is
reccomended that the <code>HEIGHT</code> and <code>WIDTH</code> be set
to 0 or some other very small values so that the "fake" applet's area is
effectively invisible.</p>
<a name="rowscols"><h3>Determining the applet size</h3></a>
<p>When the Cup-O MUD applet starts up, one of the first things it does
is to determine exactly what size the applet will be and how many text
rows and columns the output window will support. This can be done one
of two ways (or a combination of the two):</p>
<p>By default, the applet's size is dictated by the <code>HEIGHT</code>
and <code>WIDTH</code> attributes found in the
<code><APPLET></code> tag. From this information, the applet
calculates the size which the output window will occupy, and from this
determines how many rows and columns it can contain at the given
font.</p>
<p>Alternately, the number of rows and/or columns for the output window
can be specified by supplying "rows" and "cols" parameters to the applet
via <code><PARAM></code> tags. If one or both of these is specified explicitly, the
applet will take this value and from it determine how high and/or wide
the output window must be to hold the specified number of rows/columns
at the given font. From this it will determine how high and/or wide the
applet must be, and resize the entire applet appropriately.</p>
<p>Thus, if no "rows" or "cols" parameters are provided, the applet will
be whatever size the <code>HEIGHT</code> and <code>WIDTH</code> in the
<code><APPLET></code> tag specify, and will have whatever output
window size that allows. If "rows" and "cols" are specified, the applet
will have that many rows and columns in its output window, and will
automatically be sized to be whatever size it needs to be for that to be
true. If "rows" is specified but not "cols" the applet will be however
high it must be to have the right number of text rows, and will be
however wide the <code>WIDTH</code> attribute specifies. Likewise if
"cols" is specified without "rows", it will be however wide it needs to
be for that many columns and however high the <code>HEIGHT</code>
attribute dictates.</p>
<p><b><a name="sizeproblem">NOTE:</a> While resizing the applet based
on rows/cols theoretically should work (and may in future), Netscape (so
far the only real Java-enabled browser) does not support resizing of
applet areas on the page. This means that while the Cup-O MUD applet
can resize all its components appropriately, it cannot change the area
Netscape has allocated for it on the page with the <code>HEIGHT</code>
and <code>WIDTH</code> elements.</b>
If the "rows" or "cols" parameters require resizing larger than the
initial size of the applet, the applet will be clipped at the
right/bottom edges. If they reduce the size of the applet there will be
empty space at the right/bottom edges. If Netscape or someone else fixes
this in future this applet will then work the way it was intended, but
until then, people will have to live with it, I guess.</p>
<a name="corrects"><h3>Tweaking the applet size</h3></a>
<p>the Cup-O MUD applet also supports a couple of parameters for making
fine adjustments on the applet's size. These are not generally terribly
useful, and their presence in no way means that their use is encouraged,
or will even have the same effect on all platforms, but they can be
useful in some specialized applications.</p>
<p>The "hcorrect" and "vcorrect" parameters are really only useful if
you are specifying the applet's <code>HEIGHT</code> and <code>WIDTH</code> as percentage values
(as Netscape allows one to do). These parameters specify a horizontal
and vertical correction to apply to the applet's size, respectively.
This allows one to effectively specify "70% + 20 pixels", or "100% - 5
pixels", to get somewhat finer control over the relationship between the
size of the applet and the size of the surrounding frame. Each
parameter consists of two integers, separated by a comma. The first is a
percentage (<em>without</em> the trailing "%"), indicating how big (in percent)
the initial size of the applet will be compared to the desired base-size
for the correction). The second number is the correction (in pixels) to
apply starting from the specified base.</p>
<p>Thus, for example, if you wished to specify a height of "100% + 10
pixels", you might set the <code>HEIGHT</code> in the <code><APPLET></code> tag to "120%", and give
a "vcorrect" parameter of "120,10". On the other hand, if you wanted to
specify a height of "70% + 10 pixels", you might specify a <code>HEIGHT</code> of
"100%" and a vcorrect of "142,10" (because 100 is 142% of 70). To
specify "100% - 10 pixels", you might specify a <code>HEIGHT</code> of "100%" and a
vcorrect of "100,-10".</p>
<p>As mentioned, this correction mechanism was developed for a specific
application and probably will not be terribly useful for most uses of
this applet. If you need to use it, you will know when.</p>
<hr><a name="params"><h2>Applet Parameters</h2></a>
<p>Parameters to the Cup-O MUD client are specified using <code><PARAM
NAME="</code><var>name</var><code>" VALUE="</code><var>value</var><code>"></code> tags within the
<code><APPLET> ... </APPLET></code> block).</p>
<p>The representation of string and numeric values is fairly obvious.</p>
<p><b>Boolean values</b> can be specified in a number of forms: Values of "yes",
"y", "true", "on", or "1" (any case) are considered to be true-values.
Everything else (<b>note</b>: including other nonzero numbers) is considered to
be false. Therefore, the following are resonable ways to specify
true/false:</p>
<ul>
<li>true/false
<li>trUe/FALsE
<li>yes/no
<li>Y/N
<li>1/0
</ul>
<p><a name="fontspec"><b>Font specifications</b></a> have the form "<samp><var>name</var>[-<var>style</var>][.<var>size</var>]</samp>"
([] indicates optional portions), where <var>name</var> is the font name
(such as "Courier"), <var>style</var> is the font style (one of "Bold",
"Italic", or "BoldItalic", the default is plain), and <var>size</var> is
a number indicating point size (default is 10); for example, "Courier-Bold.12".</p>
<p><a name="colorspec"><b>Colors</b></a> are specified using the same syntax as
Netscape uses for background/foreground colors in its <BODY> tag,
specifically a sequence of 6 hexidecimal digits, representing the red
(00-FF), green (00-FF), and blue (00-FF) components of the color,
in order, thus:</p>
<ul>
<li><samp>000000</samp> is black</li>
<li><samp>FFFFFF</samp> is white</li>
<li><samp>FF0000</samp> is bright red</li>
<li><samp>008012</samp> is a color with no red (00 hex), half green (80 hex), and a bit of blue (12 hex)</li>
<li><samp>7F7F7F</samp> is a shade of gray (theoretically) somewhere around halfway between black and white</li>
</ul>
<p>Color values can optionally be prefixed with "<samp>0x</samp>" (the
standard C prefix indicating a hex number), but this is not required.</p>
<p><a name="correctspec"><b>Correction values</b></a> (used for the
"hcorrect" and "vcorrect" parameters) consist of two integral numbers,
separated by a comma. The first number is a percentage
(<em>without</em> the trailing "%"), specifying the size of the applet
relative to a base size for the correction, and the second is an offset
in pixels from the base size to find the desired ultimate size. (see
<a href="#corrects">above</a> for more information)</p>
<p>The Cup-O MUD client applet currently supports the following parameters:<p>
<div align=center>
<table border=2>
<caption><b>Required Parameters</b></caption>
<tr>
<th>Name</th>
<th>Type</th>
<th>Meaning</th>
</th>
<tr>
<td align=center valign=top><samp>port</samp></td>
<td align=center valign=top>number</td>
<td align=left valign=top>TCP port to connect to on the remote system's host</td>
</tr>
</table>
<table border=2>
<caption><b>Optional Parameters</b></caption>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default Value</th>
<th>Meaning</th>
</th>
<tr>
<td align=center valign=top><samp>backscroll</samp></td>
<td align=center valign=top>number</td>
<td align=center valign=top><samp>12288</samp> (12K)</td>
<td align=left valign=top>The size (in bytes) of the backscroll (output history) buffer</td>
</tr>
<tr>
<td align=center valign=top><samp>bgcolor</samp></td>
<td align=center valign=top><a href="#colorspec">color specification</a></td>
<td align=center valign=top>system default</td>
<td align=left valign=top>Color to use for the background of the unused applet space (generally not seen, but see <a href="#sizeproblem">note</a> above).</td>
</tr>
<tr>
<td align=center valign=top><samp>cols</samp></td>
<td align=center valign=top>number</td>
<td align=center valign=top><a href="#rowscols">(determined by applet size)</a></td>
<td align=left valign=top>Number of columns in output window</td>
</tr>
<tr>
<td align=center valign=top><samp>command</samp></td>
<td align=center valign=top>string</td>
<td align=center valign=top>(disabled)</td>
<td align=left valign=top>Command to send upon connecting</td>
</tr>
<tr>
<td align=center valign=top><samp>echo</samp></td>
<td align=center valign=top>string</td>
<td align=center valign=top>(disabled)</td>
<td align=left valign=top>Echo input commands with this prefix</td>
</tr>
<tr>
<td align=center valign=top><samp>font</samp></td>
<td align=center valign=top><a href="#fontspec">font specification</a></td>
<td align=center valign=top>"<samp>Courier.12</samp>"</td>
<td align=left valign=top>A font specifier indicating the fontname, style, and point size to use for text in the input and output windows</td>
</tr>
<tr>
<td align=center valign=top><samp>hcorrect</samp></td>
<td align=center valign=top><a href="#correctspec">correction</a></td>
<td align=center valign=top><a href="#corrects">(no correction)</a></td>
<td align=left valign=top>The size correction to apply to the applet's initial horizontal size (width)</td>
</tr>
<tr>
<td align=center valign=top><samp>host</samp></td>
<td align=center valign=top>hostname/IP</td>
<td align=center valign=top>Applet host</td>
<td align=left valign=top>Address of host to connect to (this usually must be the same host as the one on which the applet's class file resides)</td>
</tr>
<tr>
<td align=center valign=top><samp>input_bgcolor</samp></td>
<td align=center valign=top><a href="#colorspec">color specification</a></td>
<td align=center valign=top>system default</td>
<td align=left valign=top>Color to use for the background of the input field.</td>
</tr>
<tr>
<td align=center valign=top><samp>input_fgcolor</samp></td>
<td align=center valign=top><a href="#colorspec">color specification</a></td>
<td align=center valign=top>system default</td>
<td align=left valign=top>Color to use for the foreground of the input field.</td>
</tr>
<tr>
<td align=center valign=top><samp>MCP</samp></td>
<td align=center valign=top>boolean</td>
<td align=center valign=top><samp>false</samp></td>
<td align=left valign=top>Respond to MCP requests?</td>
</tr>
<tr>
<td align=center valign=top><samp>MCPauth</samp></td>
<td align=center valign=top>boolean</td>
<td align=center valign=top><samp>false</samp></td>
<td align=left valign=top>Require authenticated MCP negotiations? (if this is enabled, any MCP commands sent before an authentication key has been established will be ignored)</td>
</tr>
<tr>
<td align=center valign=top><samp>output_bgcolor</samp></td>
<td align=center valign=top><a href="#colorspec">color specification</a></td>
<td align=center valign=top>system default</td>
<td align=left valign=top>Color to use for the background of the output window.</td>
</tr>
<tr>
<td align=center valign=top><samp>output_fgcolor</samp></td>
<td align=center valign=top><a href="#colorspec">color specification</a></td>
<td align=center valign=top>system default</td>
<td align=left valign=top>Color to use for the foreground of the output window.</td>
</tr>
<tr>
<td align=center valign=top><samp>preload</samp></td>
<td align=center valign=top>boolean</td>
<td align=center valign=top><samp>false</samp></td>
<td align=left valign=top>If true, applet will only load, not execute.</td>
</tr>
<tr>
<td align=center valign=top><samp>recall</samp></td>
<td align=center valign=top>number</td>
<td align=center valign=top><samp>20</samp></td>
<td align=left valign=top>The number of previous commands to keep in the command-recall buffer</td>
</tr>
<tr>
<td align=center valign=top><samp>rows</samp></td>
<td align=center valign=top>number</td>
<td align=center valign=top><a href="#rowscols">(determined by applet size)</a></td>
<td align=left valign=top>Number of rows (lines) in output window</td>
</tr>
<tr>
<td align=center valign=top><samp>sysname</samp></td>
<td align=center valign=top>string</td>
<td align=center valign=top>"<var>host</var><samp>:</samp><var>port</var>"</td>
<td align=left valign=top>Name of system being connected to (used in status messages)</td>
</tr>
<tr>
<td align=center valign=top><samp><a name="TelEcho">TelnetEcho</a></samp></td>
<td align=center valign=top>boolean</td>
<td align=center valign=top><samp>true</samp></td>
<td align=left valign=top>Respect TELNET requests to disable/enable input echoing?</td>
</tr>
<tr>
<td align=center valign=top><samp>URLtarget</samp></td>
<td align=center valign=top>string</td>
<td align=center valign=top>applet's window</td>
<td align=left valign=top>Default frame/window for MCP display-url requests</td>
</tr>
<tr>
<td align=center valign=top><samp>vcorrect</samp></td>
<td align=center valign=top><a href="#correctspec">correction</a></td>
<td align=center valign=top><a href="#corrects">(no correction)</a></td>
<td align=left valign=top>The size correction to apply to the applet's initial vertical size (height)</td>
</tr>
<tr>
<td align=center valign=top><samp>waitfor</samp></td>
<td align=center valign=top>string</td>
<td align=center valign=top>(disabled)</td>
<td align=left valign=top>Text to wait for from the remote system before displaying output lines</td>
</tr>
</table>
</div>
<hr><a name="telnet"><h2>TELNET Negotiation</h2></a>
<p>The Cup-O MUD client is compatible with the TELNET
(<a href="http://www.cis.ohio-state.edu/htbin/rfc/rfc854.html">RFC-854</a> et al.)
protocol specification and will negotiate with TELNET-aware servers in a limited fashion.</p>
<p>Please note that the telnet options supported by the client are only
a very very small subset of those normally used by most telnet programs,
and are basically only those which make sense for a line-based MUVE
client application. The Cup-O MUD client is nowhere near a full telnet
client, and will probably not work for most applications designed for
one. It is, however, compliant with the official TELNET specification,
and will respond to unsupported telnet options appropriately, as
specified by the protocol.</p>
<p>The Cup-O MUD client currently supports the following TELNET options:</p>
<div align=center>
<table border=2>
<caption><b>TELNET Options/Escapes</b></caption>
<tr>
<th>Sequence</th>
<th>Meaning</th>
<th>Result</th>
</th>
<tr>
<td align=center valign=top><samp>IAC WILL ECHO</samp><a href="#TelEcho_note">*</a></td>
<td align=left valign=top>Request by server to echo client's input characters remotely [<a href="http://www.cis.ohio-state.edu/htbin/rfc/rfc857.html">RFC-857</a>]</td>
<td align=left valign=top><i>(As only line-mode input is supported, this is interpreted as a request to start password-input mode)</i><br> Input area changed to password-style (input echoed as asterisks onscreen). Echoing of commands in output window temporarily disabled.</td>
</tr>
<tr>
<td align=center valign=top><samp>IAC WONT ECHO</samp><a href="#TelEcho_note">*</a></td>
<td align=left valign=top>Request by server to echo client's input characters locally [<a href="http://www.cis.ohio-state.edu/htbin/rfc/rfc857.html">RFC-857</a>]</td>
<td align=left valign=top><i>(Interpreted as a request to end password-input mode)</i><br> Input area and command-echoing set to normal.</td>
</tr>
<tr>
<td align=center valign=top><samp>IAC IAC</samp></td>
<td align=left valign=top>Escaped IAC code (character 255)</td>
<td align=left valign=top>Character 255 passed through to output window (NOTE: screen representation for codes above 126 may be platform-specific and/or undefined).</td>
</tr>
</table>
</div>
<p><a name="TelEcho_note" href="#TelEcho_note">*</a>: WILL/WONT ECHO
options require <a href="#TelEcho">TelnetEcho</a>=true.</p>
<p>All Unrecognized WILL/DO option requests from the server are
responded to with a negative (WONT or DONT) response by the client, as per the
RFC-854 specification. Unrecognized WONT/DONT requests and other
unrecognized escape sequences are ignored.</p>
<hr><a name="mcp"><h2>MCP Requests</h2></a>
<p>The Cup-O MUD client supports MOO Client Protocol (version 1.0) requests if the "MCP"
parameter is enabled. MCP requests consist of lines sent to/from the
remote system of the following form:</p>
<pre>
#$#<var>request-name</var> [<var>authentication-key</var>] [<var>key</var>: <var>value</var>] [<var>key</var>: <var>value</var>] ...
</pre>
<p>Where items enclosed in [] are optional, and:</p>
<dl compact>
<dt><var>request-name</var>
<dd>specifies the type of MCP request.
<dt><var>authentication-key</var>
<dd> is a secret code shared between the client and server used to
ensure the legitimacy of the MCP request.
<dt><var>key</var>/<var>value</var> pairs
<dd>specify the data for the specific requests.
<dt><var>value</var>s
<dd>consist of either
<ol type=a>
<li>A string of printing ASCII characters, not including space or quote characters, or
<li>A string of printing ASCII characters and spaces, enclosed in quotes, with
quote characters and backslashes escaped by prefixing them with
backslashes.
</ol>
</dl>
<p>For example:<p>
<pre>
#$#display-url 12345678 url: "http://foo.bar.org/" target: my-frame
</pre>
<p>The Cup-O MUD client currently supports the following MCP requests from the server:</p>
<div align=center>
<table border=2>
<caption><b>MCP Requests Received from Server</b></caption>
<tr>
<th colspan=2>Request</th>
<th colspan=3>Description</th>
</th>
<tr></tr>
<tr>
<td align=center valign=top colspan=2><samp>mcp</samp></td>
<td align=left valign=top colspan=3>Initial MCP negotiation initiation. Responds by sending an "authentication-key" MCP response, followed by status information.</td>
</tr>
<tr>
<td></td>
<th align=left colspan=4>Optional elements:</th>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>version</samp></td>
<td align=center valign=top>string</td>
<td align=left valign=top>Version of MCP supported. This is currently ignored by this client.</td>
</tr>
<tr></tr>
<tr>
<td align=center valign=top colspan=2><samp>display-url</samp></td>
<td align=left valign=top colspan=3>Display a WWW resource provided as a URL</td>
</tr>
<tr>
<td></td>
<th align=left colspan=4>Required elements:</th>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>url</samp></td>
<td align=center valign=top>URL</td>
<td align=left valign=top>URL to display</td>
</tr>
<tr>
<td></td>
<th align=left colspan=4>Optional elements:</th>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>target</samp><a href="#MCPext_note">*</a></td>
<td align=center valign=top>string</td>
<td align=left valign=top>Name of frame in which to display it</td>
</tr>
<tr></tr>
</table>
</div>
<p>The Cup-O MUD client currently will send the following MCP requests to the server
under appropriate circumstances:</p>
<div align=center>
<table border=2>
<caption><b>MCP Requests Sent to Server</b></caption>
<tr>
<th colspan=2>Request</th>
<th colspan=2>Sent on</th>
<th colspan=2>Description</th>
</tr>
<tr></tr>
<tr>
<td align=center valign=top colspan=2><samp>authentication-key</samp></td>
<td align=center valign=top colspan=2>startup</td>
<td align=left valign=top colspan=2>Sent to establish an authentication-key for security.</td>
</tr>
<tr>
<td></td>
<th align=left colspan=5>Data</th>
</tr>
<tr>
<td></td>
<td align=left valign=top colspan=5>(no MCP-style (key/value) data is provided, but the authentication-key portion of the request contains the new authentication key)</td>
</tr>
<tr></tr>
<tr>
<td align=center valign=top colspan=2><samp>window-info</samp><a href="#MCPext_note">*</a></td>
<td align=center valign=top colspan=2>startup or change</td>
<td align=left valign=top colspan=2>Provides information on the current window width and height (in characters), and related parameters.</td>
</tr>
<tr>
<td></td>
<th colspan=2>Element</th>
<th colspan=2>Value</th>
<th colspan=1>Description</th>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>rows</samp></td>
<td align=center valign=top colspan=2>number</td>
<td align=left valign=top>Number of rows (lines) in the output window.</td>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>cols</samp></td>
<td align=center valign=top colspan=2>number</td>
<td align=left valign=top>Number of columns in the output window.</td>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>wrap</samp></td>
<td align=center valign=top colspan=2>"local" or "remote"</td>
<td align=left valign=top>Whether word-wrapping at the end of lines is handled locally (by this client) or should be done remotely (by the server). This is always "local" for the Cup-O MUD client.</td>
</tr>
<tr>
<td></td>
<td align=center valign=top colspan=2><samp>page</samp></td>
<td align=center valign=top colspan=2>"local" or "remote"</td>
<td align=left valign=top>Whether output-paging/backscroll is handled locally (by this client) or should be done remotely (by the server). This is currently always "local" for the Cup-O MUD client.</td>
</tr>
<tr></tr>
</table>
</div>
<p><a name="MCPext_note" HREF="#MCPext_note">*</a>: Not part of the
standard MCP specification (what there is of one).</p>
<hr><a name="notes"><h2>Footnotes</h2></a>
<a name="muve"><h3>What is a MUVE?</h3></a>
<p>...or "A MUD by Any Other Name"</p>
<p>MUVE stands for Multi-User Virtual Environment. It is a fairly
recent term in growing use in many areas to refer to a whole plethora of
variants on a common theme of interactive servers on the Internet today.
Many people are familiar with various forms of interactive communication
available on the net. Some have used programs such as 'talk' to
communicate with others over the net, many others are familiar with
"chat rooms" on commercial services, or Internet Relay Chat (IRC) which
allows multiple people to communicate with each other at the same time,
anywhere in the world. While IRC has gotten the most amount of
attention in this area for a very long time, MUVEs have served as a less
well known but nonetheless plentiful and diverse method of communicating and
sharing ideas for hundreds of thousands of people all over the world and
across the net, providing a great deal of flexibility and creativity in
expression and interaction, unobtainable with most other forms of
communication.</p>
<p>But what actually <em>is</em> it? Well, for a (somewhat) brief summary
of a very long story, we start by going back to the very beginnings of
computer networks, actually back to the very beginnings of computers as
most people know them altogether. Way way back in
computer history, back when people communicated with computers using
things which looked more like typewriters than terminals, a few
enterprising individuals came up with something which would be the
father of many thousands of software programs after it, and shape forever the way
people looked at computers. It was a game. It was the first ever
text adventure game. It was called, simply, "Adventure".
<p>In the game of "Adventure", the computer took on the role of a person
navigating in a fictional world with puzzles and traps, and treasures
and tools. The player of the game would type in instructions
about what the computer was to do with objects in the game, and the computer would tell
the user what happened, give descriptions of what things looked like, and so forth. Though
the vocabulary was rather limited, the user communicated with the
computer using basic english commands ("get torch", for example), and
the computer would respond with english sentences and descriptions.
It was a novel approach to interacting with a
computer, and for many, a fascinating one, so much so that to date
even the newest games and other computer systems still use aspects of it in their
everyday operation, and it is still possible to find versions of the
original Adventure game (not to mention the countless derivatives
developed since) available for nearly every form of computer ever
in existence.</p>
<p>Well, needless to say that shortly after computers started getting
big enough and powerful enough to support a bunch of people
on the same computer at the same time, before people had even really
started to think of actual communication using computers, let alone email, or
networks, or chat programs, someone, as someone always was, was thinking
about Adventure, and more importantly, was thinking how really neat it
would be if a bunch of people could play the <em>same</em> Adventure game at
the same time. So, as someone always did in those days, they decided to
make it happen, and, well, it did. The first attempts were rather clumsy, as computers were never
designed with this type of thing in mind, many of the "techniques" used
to achieve this were very messy indeed, but they did work, and as time
progressed, and computers got more sophisticated, things worked a lot
better, and soon what they ended up with, while not quite Adventure
anymore, was certainly something. From the simple beginnings of
Adventure, adding many more aspects from role playing games such as
<i>Dungeons and Dragons</i>, with the ability for multiple people to be
in the same game and work with each other (or against each other) in a
shared, completely fictional environment, it was something somehow more
than just a game anymore -- The first Multi-User Dungeons had been born.</p>
<p>At about this point, the first large-scale computer networks were
being developed, and along with nearly everything else in this area,
the development of MUDs exploded as a result. Before long, people on completely different college
campuses were all hacking at monsters, discovering treasures, having a
great deal of fun, and moreover, actually <em>talking</em> to one another in
these worlds inside the computers.</p>
<p>The Internet grew larger, and the world grew smaller. Many battles
were fought in the virtual "dungeons" (and many social-lives were lost).
Many people made many advances in the way MUDs worked, and the way they
could be used. There was born the DikuMUD, the TinyMUD, the LPMUD,
MUSEs, MUSHes, MUCKs, MOOs, and many others. The worlds became more elaborate, and
it became possible to program sophisticated actions, and reactions, and
commands, and entire system designs, all from within the virtual worlds
themselves, changing the reality itself as one was inside it.</p>
<p>Of course, not everyone was terribly happy about this. These were,
after all, only games. They were huge, addictive, frivolous games which
used up more and more computer resources which should've been being used
for "real" work, or so many people saw them. Many system administrators
(understandably) frowned on the use of MUDs. Some actively prohibited
their use. In many circles, "MUD" became a four-letter word.</p>
<p>But there
were other people who were beginning to see something else in MUDs.
These weren't really merely game programs anymore, many had evolved into
sophisticated and flexible environments, full of objects and rooms and
people who could be anything anyone wanted them to be, could interact
however someone programmed them to act. The only thing which made a MUD
a game was how the scenery was described, scenery which could just as
easily be a social environment, or a research laboratory, or a
classroom. And, as time went on, some of the scenery changed...</p>
<p>Today, MUD-type systems are used for social communities, scientific forums,
educational environments, process control systems, business conferencing
systems, and nearly anything else people have come up with. Many MUD
servers have been adapted to work with graphical web interfaces, and
even 3D VR perspectives. Artificially intelligent "bots", both from
outside and programmed directly into MUDs interact with users and with
the environments, while users can build and shape their environments,
and most importantly, share information, ideas, resources, and
communities online, from thousands or millions of miles away.</p>
<p>But still, after many years of "Multi-User Dungeons", many people
still see MUDs as nothing more than games, frivolous, trivial, not
something that should be supported or allowed. Some people still won't
even consider allowing access to anything called a "MUD" from their
system, and many others are denied many of the great resources now
available as a result. Some people are working to remedy this problem
(some people have been working for a long time).
Ask many people nowadays what "MUD" means and they'll tell you
"Multi-User Dimension", or "Multi-User Domain", but in the end, it
usually comes back to "just a MUD". Just a game.</p>
<p>For this reason, a growing number of people have stopped calling them
MUDs altogether, in favor of other acronyms with less of a stigma
attached. Many people call them "MOOs", mainly because the MOO server
is a variety of MUD server which is used more than most others for the
more "respectable" applications. This has a tendency to exclude some
other types of systems which are equally valid, however. In an attempt
to avoid this, an entirely new name is gaining acceptance, to include
all manner of MUD-like systems without stigmas or prejudices, and
suggest some of the true versatility and power these "Multi-User Virtual
Environments" have come to provide.</p>
<p>And this is the story of the MUVEs, and how they came to be, a
powerful and flexible family of systems with a long history of being at
the forefront of evolving computer technologies and human desires. A
continuing history, full of even greater promise for the road ahead.</p>
<hr><div align=center>Last updated on August 25, 1996 by <a href="http://www.crl.com/~riche/">Alex Stewart</a> <<a href="mailto:riche@crl.com">riche@crl.com</a>></div>
</body>
</html>