'nethack --usage' and '?' menu
Write up a description of how the command line works on UNIX and put that in new file dat/usagehlp. Add support for |nethack --usage | --help | -? | ? to display it and exit. Also add a menu entry for nethack's help command to show it during play. That can be suppressed by uncommenting new '#define HIDE_USAGE' in config.h since it won't be useful on servers that don't give players access to command lines. New genl_display_file() just writes to stdout. opt_usage(), which calls it, might need some suid/sgid handling to make sure the output is done as the player rather than as nethack. doc/nethack.6 is already out of date again.
This commit is contained in:
@@ -1191,7 +1191,7 @@ $(TARGETPFX)vision.o: vision.c $(HACK_H)
|
||||
$(TARGETPFX)weapon.o: weapon.c $(HACK_H)
|
||||
$(TARGETPFX)were.o: were.c $(HACK_H)
|
||||
$(TARGETPFX)wield.o: wield.c $(HACK_H)
|
||||
$(TARGETPFX)windows.o: windows.c $(HACK_H) ../include/wintty.h
|
||||
$(TARGETPFX)windows.o: windows.c $(HACK_H) ../include/dlb.h ../include/wintty.h
|
||||
$(TARGETPFX)wizard.o: wizard.c $(HACK_H)
|
||||
$(TARGETPFX)worm.o: worm.c $(HACK_H)
|
||||
$(TARGETPFX)worn.o: worn.c $(HACK_H)
|
||||
|
||||
Reference in New Issue
Block a user