colordepth - luxembourg/muxcode-clm GitHub Wiki
COLORDEPTH()
FUNCTION: colordepth(<player|port>)
Returns the expected color depth of the client.
0 - Client does not see color. 4 - ANSI escapes (highlight + 8 colors). 8 - XTERM-style 256-color palette. 24 - MXP/HTML-style color tags.
If <player|port> is numeric, it's taken as a port number (as shown in SESSION). Otherwise, it's treated as a player name. If the named player is connected more than once, the color depth of the session having the smallest idle time is returned.
Even though the function accepts a port number, there is currently no means to negotiation client color depth, so the result is always based upon player flags which are the same in every session. The flags are ANSI, COLOR256, and HTML.
You and any object with the See_All @power may obtain the color depth of your sessions.
Example: > say colordepth(me) You say, "24" > @set me=!ANSI > say colordepth(me) You say, "0"