5 Add utf8 as a toggle option and store in the nat_flags field in
6 nation structure. In the future, this should be a login option
7 rather than a country toggle once the login options are added.
11 a. Message as command argument
13 Interpret raw command line as message text rather than normal
18 Read message lines as message text rather than normal text.
22 Count the charactes using utf8 format. This works for both ASCII
23 and UTF8 formatted strings.
27 Print as message text rather than normal text.
29 3. Telexes and telex-like things
31 a. read and wire, MOTD and gamedown message
33 Print as message text rather than normal text.
35 c. tele, anno, pray, turn.
37 Read as message text rather than normal text.
41 a. Parsing commands (normal text)
43 Ignore control and non-ASCII characters when copying argument
46 b. Reading normal text command arguments
48 Replace control and non-ASCII characters, except for tab with
51 c. Reading message text command arguments
53 Support message text arguments, used by 3a. and 2b. Replace
54 control and, if NF_UTF8 is off, non-ASCII characters.
58 Output filtering asssumes that there are no control characters or
59 invalid characters in the output messages. The control characters
60 and invalid characters are filtered out during input filtering or
61 that the server will not generate control characters or invalid
64 a. Printing normal text
66 When NF_UTF8 is on, highlighted text is printed using SO/SI.
68 b. Printing message text
70 When NF_UTF8 is off, replace UTF8 charactes with '?'.
76 For normal text, the following ASCII characters are valid:
77 CR, LF and 0x20-0x7e. Normally, LF is an termination action
78 event. Normally, CR is not used except by the server.
79 Normal Text does not support UTF8 characters. In normal
80 text, the 8th bit is used a highlight bit. If the client
81 has the utf8 nation flag set, the standout bit is removed
82 and the highlight block is prefixed with SO (ASCII standout)
83 and suffixed with SI (ASCII standin).
86 For message text, the following ASCII characters are valid:
87 Tab, CR, LF and 0x020-0x7e. Normally, LF is an termination
88 action event. Normally, CR is not used except by the server.
89 Message text also supports UTF8 characters if the utf8 nation
90 flag is turn on otherwise only the ASCII characters are
96 1. Strings that considered message text are commented.
98 2. Both Normal and Message text are char strings are in the server.
99 Care needs to be taken as some compiler consider char
100 signed and other default to unsigned char.
102 3. Unicode functions are prefixed with u.