[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/term.c</h2>
This object handles all the terminal related stuff.  Figuring out to 
display each colour and verifying that the colours are correct.
The terminal handler.  This has all sorts of utterly useless junk on it
Share and enjoy.
Thrown up by Pinkfish.

   Modified by Godot to add the xterm terminal. (10/16/92)
   Added vt100 Chrisy 15 may 93

   Definitions:

       <colour>    foreground colour
       B_<colour>  background colour
       BOLD        bold or bright letters
       ENDTERM     unknown
       FLASH       flashing or blinking letters
       INITTERM    unknown
       RESET       return to the normal font -- not a terminal reset.
       STATUS      unknown
       WINDOW      unknown
       REVERSE     reverse video mode
       UNDERLINE   underline mode
       FIXED       fixed font
       PROP        proportional font
<h2>Method index</h2>
<ul>
<li><a href="#floor_mxp_commands">floor_mxp_commands</a>()<li><a href="#floor_mxp_tag">floor_mxp_tag</a>()<br/>
This function returns the commands used on the object when it is
on the floor.
<li><a href="#inventory_mxp_commands">inventory_mxp_commands</a>()<li><a href="#inventory_mxp_tag">inventory_mxp_tag</a>()<br/>
This function returns the commands used on the object when it is
in your inventory.
<li><a href="#living_mxp_commands">living_mxp_commands</a>()<li><a href="#living_mxp_tag">living_mxp_tag</a>()<br/>
This function returns the list of commands available to use in an
mxp way on a living/player.
<li><a href="#query_colour_codes">query_colour_codes</a>()<br/>
This method returns the array of usable colours.
<li><a href="#query_term_types">query_term_types</a>()<br/>
This method returns all the currently available types of terminals.
<li><a href="#set_network_term_type">set_network_term_type</a>(string, int)<br/>
This returns the mapping of colours based on the terminal type
entered in here.
<li><a href="#set_term_type">set_term_type</a>(string, int)<br/>
This returns the mapping of colours based on the terminal type
entered in here.
<li><a href="#update_user_colour">update_user_colour</a>(int, mapping)<br/>
This method updates the results with user colour mangling on the way.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="floor_mxp_commands">
floor_mxp_commands</a><pre class="autodocfuncdef">
string floor_mxp_commands()
</pre>
<dt class="autodocfuncname"><a name="floor_mxp_tag">
floor_mxp_tag</a><pre class="autodocfuncdef">
string floor_mxp_tag()
</pre><dd><br />
This function returns the commands used on the object when it is
on the floor.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the mxp commands
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="inventory_mxp_commands">
inventory_mxp_commands</a><pre class="autodocfuncdef">
string inventory_mxp_commands()
</pre>
<dt class="autodocfuncname"><a name="inventory_mxp_tag">
inventory_mxp_tag</a><pre class="autodocfuncdef">
string inventory_mxp_tag()
</pre><dd><br />
This function returns the commands used on the object when it is
in your inventory.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the mxp commands
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="living_mxp_commands">
living_mxp_commands</a><pre class="autodocfuncdef">
string living_mxp_commands()
</pre>
<dt class="autodocfuncname"><a name="living_mxp_tag">
living_mxp_tag</a><pre class="autodocfuncdef">
string living_mxp_tag()
</pre><dd><br />
This function returns the list of commands available to use in an
mxp way on a living/player.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the mxp commands
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_colour_codes">
query_colour_codes</a><pre class="autodocfuncdef">
string * query_colour_codes()
</pre><dd><br />
This method returns the array of usable colours.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the array of usable colours
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_term_types">
query_term_types</a><pre class="autodocfuncdef">
string * query_term_types()
</pre><dd><br />
This method returns all the currently available types of terminals.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the array of terminal types
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="set_network_term_type">
set_network_term_type</a><pre class="autodocfuncdef">
mixed set_network_term_type(string str,
                            int usercolour)
</pre><dd><br />
This returns the mapping of colours based on the terminal type
entered in here.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str - the terminal type<br />
<br />
<dd><b>Returns:</b>
<br />mapping of colours to escape codes
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="set_term_type">
set_term_type</a><pre class="autodocfuncdef">
mapping set_term_type(string str,
                      int usercolour)
</pre><dd><br />
This returns the mapping of colours based on the terminal type
entered in here.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
str - the terminal type<br />
<br />
<dd><b>Returns:</b>
<br />mapping of colours to escape codes
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="update_user_colour">
update_user_colour</a><pre class="autodocfuncdef">
mapping update_user_colour(int usercolour,
                           mapping term)
</pre><dd><br />
This method updates the results with user colour mangling on the way.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
usercolour - how to mangle the results<br />
term - the terminal setup to mangle<br />
<br />
<dd><b>Returns:</b>
<br />the messed with colour mapping
<br /><br />
<br /></dl>

</dl>
[an error occurred while processing this directive]

