Holds necessary telnet control and option codes for the use
of making all the code I'm writing dealing with telnet control
and option codes infinitely easier to read, write, and debug.
This module is not for formatting text--use mudlib.formatter for
that. This module is for the various in-game editors we have which
have a "curses" kind of interface.
Don't call anything in here outside of the mudlib. It's not healthy.
Also holds character constants for those editors and such.
Functions
|
|
boldText ctrl inverseText
|
|
boldText
|
boldText ( str )
Returns the sequence for bolded text.
arguments:
-
str
- (string) the string to bold
returns:
(string) the string surrounded by the bold ansi codes |
|
ctrl
|
ctrl ( x )
Returns the control code for this character.
example: a -> ctrl-a
arguments:
-
x
- (character) the character to convert
to a control code
returns:
(character) the control version of the character |
|
inverseText
|
inverseText ( str )
Returns the sequence for inversed text (background <->
foreground colors). arguments:
-
str
- (string) the text to inverse
return:
(string) the text in the inversion ansi codes
|
|