NetHack 1.3d/unixtty.c