This is the original source code to a Pac-Man text game posted to newsgroups in 1982. The newsgroup was alt.games.pacman (I believe).
/*
/* PACMAN - written by Dave Nixon, AGS Computers Inc., July, 1981.
/* Converted for curses Feb 1982 by Mark Horton.
/*
/* Terminal handling for video games taken from aliens
/* the original version of aliens is from
/* Fall 1979 Cambridge Jude Miller
/*
/* Score keeping modified and general terminal handling (termcap routines
/* from UCB's ex) added by Rob Coben, BTL, June, 1980.