Support UTF-8 encoded Unicode for user communications.

(NF_UTF8, togg): New client flag.
(flash, wall): User text input filtering.
(parse, prmptrd): Normal text input filtering.
(uprmptrd, ugetstring): New, to get user text.
(getele, flash, wall): Use them.
(getele): No need to filter out funny characters; input filtering
takes care of them.
(sendmessage, ufindbreak): Work on user text.
(uprnf): New, to print user text.
(rea, gamedown, show_motd): Use it.
(prnf): Unused, remove.
(pr, upr_player): Normal text output filtering (with highlighting).
(pr_flash): User text output filtering.
This commit is contained in:
Ron Koenderink 2005-05-26 01:58:48 +00:00
parent 2508364945
commit 2cc44bb182
14 changed files with 343 additions and 56 deletions

View file

@ -154,7 +154,7 @@ gamedown(void)
{
FILE *down_fp;
struct telstr tgm;
s_char buf[MAXTELSIZE];
s_char buf[MAXTELSIZE]; /* buf is message text */
if (player->god)
return 0;
@ -176,7 +176,7 @@ gamedown(void)
return 1;
}
buf[tgm.tel_length] = 0;
prnf(buf);
uprnf(buf);
pr("\nThe game is down\n");
fclose(down_fp);
return 1;