ANSI Options #97
Aliases: ANSI Options, ao
3 verbs · 21 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
actual | this none this | rxd | #97 | 9 |
show_escape | this none this | rxd | #97 | 5 |
parse_escape | this none this | rxd | #97 | 7 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
show_colors | #97 | r | #36 | {"Strip out color sequences.", "Translate color sequences."} |
show_blinking | #97 | r | #36 | {"Do not show blinking sequences.", "Show blinking sequences."} |
show_bold | #97 | r | #36 | {"Do not show bright colors.", "Send bright colors."} |
show_misc | #97 | r | #36 | {"Do not send all the other ANSI sequences.", "Send all the other ANSI sequences."} |
show_all | #97 | r | #36 | {{"+all => Send all ANSI sequences.", "-all => Do not send any ANSI sequences."}} |
show_none | #97 | r | #36 | {{"+none => Do not send any ANSI sequences.", "-none => Send all ANSI sequences."}} |
type_escape | #97 | r | #36 | {2} |
show_ignore | #97 | r | #36 | {"See 'help ansi-options' for more information.", "Overriding other options and ignoring all ANSI codes."} |
show_no_connect_status | #97 | r | #36 | {"Don't show any status messages upon connecting.", "Show status messages about ANSI upon connecting."} |
show_extra | #97 | r | #36 | {"Do not send extra non-ANSI codes.", "Send extra non-ANSI codes."} |
show_html | #97 | r | #36 | {"MOO client does not support inline HTML tags.", {"MOO client supports inline HTML.", "Translate color sequences into HTML."}} |
show_filter_tags | #97 | r | #36 | {"MOO client does not hide words inside < >.", "Add space after < to prevent client from hiding enclosed words."} |
names | #68 | r | #36 | list of 9{"colors", "blinking", "bold", "misc", "escape", "ignore", "no_connect_status", "extra", "filter_tags"} |
_namelist | #68 | r | #36 | "!colors!blinking!bold!misc!escape!ignore!no_connect_status!extra!all!none!html!filter_tags!" |
extras | #68 | r | #36 | {"all", "none", "html"} |
namewidth | #68 | rc | #36 | 22 |
key | #1 | c | #36 | 0 |
aliases | #1 | rc | #36 | {"ANSI Options", "ao"} |
description | #1 | rc | #36 | "An option package for controlling and customizing the ANSI PC." |
object_size | #1 | r | #36 | {3635, -1090650497} |
html | #1 | rc | #36 | <clear> |
Ancestry
Ancestors (nearest first): #68 Generic Option Package → #1 Root Class
Children: none
Call graph
Source
actual
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
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
Referenced by
none
Source
1oname = args[1]; 2raw = args[2]; 3if (typeof(raw) == STR) 4return {oname, raw}; 5else 6return "String value expected."; 7endif