| TinTin++ Mud Client Manual |
| Format | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Syntax: #format {variablename} {format} {argument1} {argument2} {etc} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This command allows you to format text very much like the sprintf function in C. The result will be stored in the variable given. The format part can contain text and argument variables. You can give up to 20 arguments in the arguments part. Also see the linux man file on sprintf. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example:
#alias {time}
{
#format line {%cThe time is: %t} {light green} {%Y-%m-%d %T};
#showme {$line}
}
|