]> granicus.if.org Git - nethack/commitdiff
symbols documentation (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 23 Sep 2006 05:34:38 +0000 (05:34 +0000)
committernethack.rankin <nethack.rankin>
Sat, 23 Sep 2006 05:34:38 +0000 (05:34 +0000)
     A first cut at adding some user-level documentation to dat/symbols.
It should probably include a brief example (not verbose description) of
how to specify values in the various supported formats (decimal, octal,
hexadecimal, simple string, string including escape sequeces?).  Perhaps
a pointer to the Guidebook too. :-}

dat/symbols

index c30f6b2c76e8ea15189fe6c9cb9b2d1e98b11d78..5594da5dcd27723a93d5d6b492824196e7e77b84 100644 (file)
@@ -1,3 +1,17 @@
+# Symbol sets for use in NetHack's text-based display.
+#
+# IBMgraphics works by specifying special characters which reside
+# outside the range of normal printable characters.  It has subsets
+# for use where the internal code page is different than the one
+# used by US ASCII (437) and has some different special characters.
+#
+# DECgraphics works by switching back and forth between two fonts,
+# where the alternate one substitutes special characters in place
+# of ordinary printable characters in the lowercase letter range.
+# NetHack encodes the request to use the alternate font here by
+# having the high bit set (in hexadecimal, \x80 is combined with
+# a character code between \x60 and \x7f).
+
 start: DECgraphics
        Handling: DEC
        S_vwall: \xf8                   # meta-x, vertical rule