NetHack 2.3e/termcap.c