NetHack 1.3d/termcap.c