# # Patch name: screen_reader.173p3 # Patch version: 1 # Author's name: Alan Schwartz # Author's email: dunemush@pennmush.org # Version of PennMUSH: 1.7.3p3 # Date patch made: 2000 Aug 12 # Author is willing to support (yes/no): no # Patch format: context diff # # # This is a contributed PennMUSH patch. Its use is subject to the # same restrictions found in PennMUSH's hdrs/copyrite.h file. # # No warranty is given for this patch. It is not necessarily going # to work on your system, with any version of PennMUSH other than # the one above, etc. # # If the author given above was willing to support the patch, you # should write to the author if you have any questions or problems. Do # *NOT* send email messages to Javelin or any PennMUSH mailing list about # this patch! # # Below this line is the author's description of the patch, # followed by the patch itself. If the patch is in context diff # format, you'll probably apply it by typing: patch < patchfile # in your top-level MUSH directory, unless instructed otherwise # below. # This patch adds a new player toggle, SCREEN_READER, that doesn't do anything in the source, but can be tested to determine if a player is using a braille display or screen reader (assuming they've set the flag on themselves). Index: social_1_7_3.23/game/txt/hlp/pennflag.hlp *** social_1_7_3.23/game/txt/hlp/pennflag.hlp Mon, 24 Apr 2000 10:43:45 -0500 dunemush (pennmush/17_pennflag.h 1.1.1.1.1.2 600) --- social_1_7_3.23(w)/game/txt/hlp/pennflag.hlp Sat, 12 Aug 2000 11:51:58 -0500 dunemush (pennmush/17_pennflag.h 1.1.1.1.1.2 600) *************** *** 44,50 **** O - Opaque P - Player (type) Q - Quiet R - Room (type) S - Sticky U - Unfindable V - Visual W - Wizard X - Safe ! Z - Zone, Z_Tel a - Audible b - Debug c - Connected, Cloudy d - Destroy_Ok e - Enter_Ok f - Force_White --- 44,50 ---- O - Opaque P - Player (type) Q - Quiet R - Room (type) S - Sticky U - Unfindable V - Visual W - Wizard X - Safe ! Z - Zone, Z_Tel B - Screen_Reader a - Audible b - Debug c - Connected, Cloudy d - Destroy_Ok e - Enter_Ok f - Force_White *************** *** 527,532 **** --- 527,539 ---- flag and then @dest it. If the REALLY_SAFE option is not set, @destroy/override (or @nuke) will override the SAFE flag and destroy the object. + & SCREEN_READER + Flag: SCREEN_READER (players) + + This flag can be used by players to indicate that they are using + a screen reader or braille display. Coders can test this flag + and decide whether to use ascii art or simpler displays in their + code. & STICKY Flag: STICKY (all types) Index: social_1_7_3.23/src/flags.c *** social_1_7_3.23/src/flags.c Sat, 12 Aug 2000 09:29:14 -0500 dunemush (pennmush/c/20_flags.c 1.1.1.1.1.1.1.1.1.1.1.1.1.3.1.1 600) --- social_1_7_3.23(w)/src/flags.c Sat, 12 Aug 2000 11:50:14 -0500 dunemush (pennmush/c/20_flags.c 1.1.1.1.1.1.1.1.1.1.1.1.1.3.1.1 600) *************** *** 150,155 **** --- 150,156 ---- {"SUSPECT", 's', TYPE_PLAYER, PLAYER_SUSPECT, F_WIZARD | F_MDARK, F_WIZARD | F_MDARK}, {"PARANOID", 'p', TYPE_PLAYER, PLAYER_PARANOID, F_ANY, F_ANY}, + {"SCREEN_READER", 'B', TYPE_PLAYER, PLAYER_SCREEN_READER, F_ANY, F_ANY}, {"MONITOR", 'M', TYPE_THING, THING_LISTEN, F_ANY, F_ANY}, {"DESTROY_OK", 'd', TYPE_THING, THING_DEST_OK, F_ANY, F_ANY}, Index: social_1_7_3.23/hdrs/flags.h *** social_1_7_3.23/hdrs/flags.h Sat, 12 Aug 2000 09:29:14 -0500 dunemush (pennmush/d/14_flags.h 1.1.1.1.1.1.1.1.1.1.1.1 600) --- social_1_7_3.23(w)/hdrs/flags.h Sat, 12 Aug 2000 11:48:46 -0500 dunemush (pennmush/d/14_flags.h 1.1.1.1.1.1.1.1.1.1.1.1 600) *************** *** 128,133 **** --- 128,134 ---- #define PLAYER_FORCEWHITE 0x100000 /* Force ansi_white after output */ #endif #define PLAYER_PARANOID 0x200000 /* Paranoid nospoof */ + #define PLAYER_SCREEN_READER 0x400000 /* Using a screen reader */ /*--------------------------------------------------------------------------