ANSI Options #97

Parent #68Owner #36Flags readSource RPG Core/rpgcore-patched.db

Aliases: ANSI Options, ao

3 verbs · 21 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
actualthis none thisrxd#979
show_escapethis none thisrxd#975
parse_escapethis none thisrxd#977

Properties

PropertyDefinerFlagsOwnerValue
show_colors#97r#36{"Strip out color sequences.", "Translate color sequences."}
show_blinking#97r#36{"Do not show blinking sequences.", "Show blinking sequences."}
show_bold#97r#36{"Do not show bright colors.", "Send bright colors."}
show_misc#97r#36{"Do not send all the other ANSI sequences.", "Send all the other ANSI sequences."}
show_all#97r#36{{"+all => Send all ANSI sequences.", "-all => Do not send any ANSI sequences."}}
show_none#97r#36{{"+none => Do not send any ANSI sequences.", "-none => Send all ANSI sequences."}}
type_escape#97r#36{2}
show_ignore#97r#36{"See 'help ansi-options' for more information.", "Overriding other options and ignoring all ANSI codes."}
show_no_connect_status#97r#36{"Don't show any status messages upon connecting.", "Show status messages about ANSI upon connecting."}
show_extra#97r#36{"Do not send extra non-ANSI codes.", "Send extra non-ANSI codes."}
show_html#97r#36{"MOO client does not support inline HTML tags.", {"MOO client supports inline HTML.", "Translate color sequences into HTML."}}
show_filter_tags#97r#36{"MOO client does not hide words inside < >.", "Add space after < to prevent client from hiding enclosed words."}
names#68r#36
list of 9{"colors", "blinking", "bold", "misc", "escape", "ignore", "no_connect_status", "extra", "filter_tags"}
_namelist#68r#36"!colors!blinking!bold!misc!escape!ignore!no_connect_status!extra!all!none!html!filter_tags!"
extras#68r#36{"all", "none", "html"}
namewidth#68rc#3622
key#1c#360
aliases#1rc#36{"ANSI Options", "ao"}
description#1rc#36"An option package for controlling and customizing the ANSI PC."
object_size#1r#36{3635, -1090650497}
html#1rc#36<clear>

Ancestry

Ancestors (nearest first): #68 Generic Option Package#1 Root Class

Children: none

Call graph

calls n97_1 #97:show_escape n68_0 #68:get n97_1->n68_0

Source

actual

Spec this none thisFlags rxdOwner #36Definer #97

Referenced by

none

Source

1if (args[1] == "all")
2return {{"colors", a = args[2]}, {"extra", a}, {"misc", a}, {"blinking", a}, {"bold", a}, {"ignore", 0}, {"html", 0}};
3elseif (args[1] == "none")
4return {{"colors", a = !args[2]}, {"extra", a}, {"misc", a}, {"blinking", a}, {"bold", a}, {"html", 0}};
5elseif (args[1] == "html")
6return {{"html", a = args[2]}, {"colors", 1}, {"extra", 0}, {"misc", 0}, {"blinking", 0}, {"bold", 1}, {"ignore", 0}};
7else
8return {args};
9endif

show_escape

Spec this none thisFlags rxdOwner #36Definer #97

Referenced by

none

Source

1if (value = this:get(@args))
2return {value, {tostr("Send \"", value, "\" for the escape character.")}};
3else
4return {0, {"Use a character 27 as the escape character."}};
5endif

parse_escape

Spec this none thisFlags rxdOwner #36Definer #97

Referenced by

none

Source

1oname = args[1];
2raw = args[2];
3if (typeof(raw) == STR)
4return {oname, raw};
5else
6return "String value expected.";
7endif