NetHack 2.3e/pctty.c