NetHack 2.3e/unixtty.c