curses splash/copyright screen, role prompt
Back out '#include "date.h"' so that cursinit.c won't be recompiled every time any other file(s) need to be compiled. It doesn't need patchlevel.h either. There is already a straightforward way to fetch the copyright banner lines from version.c. The splash screen (ascii art spelling "NetHack" preceding the normal copyright lines) was invisible when showing white text on white-ish background. Make it honor !guicolor. "Shall I pick a character's role, race, gender and alignment for you? [ynaq] (y) " was too wide to accept the answer on the same line on an 80-column display so "(y) " was placed on the second line. That's constructed in the core; change the construction to omit " a" when using "character" rather than a role name. (tty shortens it by omitting the default " (y)"; with " a" gone, it could revert to normal prompt.) Also a bit of lint cleanup and some reformatting of cursinit.c....
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# NetHack Makefile.
|
||||
# NetHack 3.6 Makefile.src $NHDT-Date: 1543447374 2018/11/28 23:22:54 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.60 $
|
||||
# NetHack 3.6 Makefile.src $NHDT-Date: 1546137503 2018/12/30 02:38:23 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.66 $
|
||||
# Copyright (c) 2018 by Pasi Kallinen
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
|
||||
@@ -790,7 +790,7 @@ cursstat.o: ../win/curses/cursstat.c $(HACK_H) ../include/wincurs.h \
|
||||
../win/curses/cursstat.h
|
||||
$(CC) $(CFLAGS) -c ../win/curses/cursstat.c
|
||||
cursinit.o: ../win/curses/cursinit.c $(HACK_H) ../include/wincurs.h \
|
||||
../win/curses/cursinit.h ../include/patchlevel.h ../include/date.h
|
||||
../win/curses/cursinit.h
|
||||
$(CC) $(CFLAGS) -c ../win/curses/cursinit.c
|
||||
cursmesg.o: ../win/curses/cursmesg.c $(HACK_H) ../include/wincurs.h \
|
||||
../win/curses/cursmesg.h
|
||||
|
||||
Reference in New Issue
Block a user