Files
nethack/sys/wince
nethack.allison 8fc01eb6b1 window port change - putmixed() (trunk only)
Add putmixed() to the window port. It allows map symbols to
be included in the string by encoding them in a unique fashion.
This was done because Unicode symbols, for instance, could be
longer than the size of a char.

The encoding of the map symbols in this patch is done by
prefixing a glyph value with \GXXXX, where XXXX is a
random value for the current game. The reason for the random
prefix is to minimize the possibility that a player can trigger
the escape sequence processing within text under their control
(dog names, etc.) the way they could if the sequence was fixed
in the source code. The random prefix remains the same throughout
the lifetime of a game because message window strings are
saved in the save file.

(There was actually a bug present because of the embedded
character even before the recent symbol changes, because if
someone was using a  different set of characters between games,
the saved messages would reflect the original characters, rather
than the current. That bug was introduced with the ability to
save messages to the savefile.)

A window port does not have to supply an XXX_putmixed() routine,
it can use genl_putmixed() which uses the old behavior of
embedding the sequence as a character within the string
and calling putstr(). genl_putmixed() takes care of the decoding
of the escape sequence.

This also #ifdef's out code in pager.c for converting a glyph
to a character, and uses mapglyph() to do that instead. Does
anyone see a problem with doing that through mapglyph instead
of repeating similar code within pager.c?
2006-10-17 23:06:31 +00:00
..
2003-08-01 12:06:43 +00:00
2006-01-06 05:52:48 +00:00
2005-01-23 19:39:01 +00:00
2003-08-22 13:21:18 +00:00
2003-08-01 12:06:43 +00:00
2005-01-02 20:55:41 +00:00
2002-12-18 03:51:34 +00:00
2003-08-01 12:06:43 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2002-12-18 03:51:34 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2006-09-21 05:53:08 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2006-10-01 19:30:08 +00:00
2005-01-23 19:39:01 +00:00
2003-08-01 12:06:43 +00:00
2002-07-22 03:20:52 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2006-10-01 19:30:08 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2005-01-23 19:39:01 +00:00
2003-02-23 14:08:54 +00:00
2005-01-23 19:39:01 +00:00
2002-12-18 03:51:34 +00:00
2005-01-23 19:39:01 +00:00