backgammon(6)/hack(6)/larn(6): replace sgtty with termios