[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/term.c

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: foreground colour B_ 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

Method index

Public Functions

These are functions that everyone can access.

floor_mxp_commands
string floor_mxp_commands()
floor_mxp_tag
string floor_mxp_tag()

This function returns the commands used on the object when it is on the floor.

Returns:
the mxp commands


inventory_mxp_commands
string inventory_mxp_commands()
inventory_mxp_tag
string inventory_mxp_tag()

This function returns the commands used on the object when it is in your inventory.

Returns:
the mxp commands


living_mxp_commands
string living_mxp_commands()
living_mxp_tag
string living_mxp_tag()

This function returns the list of commands available to use in an mxp way on a living/player.

Returns:
the mxp commands


query_colour_codes
string * query_colour_codes()

This method returns the array of usable colours.

Returns:
the array of usable colours


query_term_types
string * query_term_types()

This method returns all the currently available types of terminals.

Returns:
the array of terminal types


set_network_term_type
mixed set_network_term_type(string str,
                            int usercolour)

This returns the mapping of colours based on the terminal type entered in here.

Parameters:
str - the terminal type

Returns:
mapping of colours to escape codes


set_term_type
mapping set_term_type(string str,
                      int usercolour)

This returns the mapping of colours based on the terminal type entered in here.

Parameters:
str - the terminal type

Returns:
mapping of colours to escape codes


update_user_colour
mapping update_user_colour(int usercolour,
                           mapping term)

This method updates the results with user colour mangling on the way.

Parameters:
usercolour - how to mangle the results
term - the terminal setup to mangle

Returns:
the messed with colour mapping