NetHack 1.4f/pctty.c