5 Added a login options. The first option is utf-8 and it sets
6 the PF_UTF8 player's flags. Default is off.
8 options utf-8 -- turns on the utf-8
9 options utf-8=1 -- turns on the utf-8
10 options utf-8=0 -- turns off the utf-8
11 options -- lists current options and their values
15 a. Message as command argument
17 Interpret raw command line as message text rather than normal
22 Read message lines as message text rather than normal text.
26 Count the charactes using utf8 format. This works for both ASCII
27 and UTF8 formatted strings.
31 Print as message text rather than normal text.
33 3. Telexes and telex-like things
35 a. read and wire, MOTD and gamedown message
37 Print as message text rather than normal text.
39 c. tele, anno, pray, turn.
41 Read as message text rather than normal text.
45 a. Parsing commands (normal text)
47 Ignore control and non-ASCII characters when copying argument
50 b. Reading normal text command arguments
52 Replace control and non-ASCII characters, except for tab with
55 c. Reading message text command arguments
57 Support message text arguments, used by 3a. and 2b. Replace
58 control and, if NF_UTF8 is off, non-ASCII characters.
62 Output filtering asssumes that there are no control characters or
63 invalid characters in the output messages. The control characters
64 and invalid characters are filtered out during input filtering or
65 that the server will not generate control characters or invalid
68 a. Printing normal text
70 When NF_UTF8 is on, highlighted text is printed using SO/SI.
72 b. Printing message text
74 When NF_UTF8 is off, replace UTF8 charactes with '?'.
80 For normal text, the following ASCII characters are valid:
81 CR, LF and 0x20-0x7e. Normally, LF is an termination action
82 event. Normally, CR is not used except by the server.
83 Normal Text does not support UTF8 characters. In normal
84 text, the 8th bit is used a highlight bit. If the client
85 has the utf8 nation flag set, the standout bit is removed
86 and the highlight block is prefixed with SO (ASCII standout)
87 and suffixed with SI (ASCII standin).
90 For message text, the following ASCII characters are valid:
91 Tab, CR, LF and 0x020-0x7e. Normally, LF is an termination
92 action event. Normally, CR is not used except by the server.
93 Message text also supports UTF8 characters if the utf8 nation
94 flag is turn on otherwise only the ASCII characters are
100 1. Strings that considered message text are commented.
102 2. Both Normal and Message text are char strings are in the server.
103 Care needs to be taken as some compiler consider char
104 signed and other default to unsigned char.
106 3. Unicode functions are prefixed with u.
108 Notes for Client Implementors:
112 1. If you do not specify a login options, it the server will start the
113 session in ASCII mode.
115 2. This is close to the previous mode (<4.2.21) but there is more filtering
116 to remove non-ASCII characters and ASCII control characters.
118 3. If another client in UTF8 mode tries to send to this client then the
119 server will replace the non-ASCII characters with question marks.
121 4. The standout works the same as before where the 8th bit indicates that
122 the character should be highlighted.
126 1. The login options must be specified before the play command is sent.
127 The syntax is 'options utf-8'.
129 2. The server will filter ASCII control characters but will pass any characters
132 3. For the standout mode, the server inserts an ASCII SO character at the
133 beginning of standout sequence and the server sends an ASCII SI character at
134 the end of the standout sequence.