NetHack 2.2a/unixtty.c