prolog-eof-string
prolog-eof-string is a variable defined in `prolog.el'.Its value is
"end_of_file. "
Documentation:
Alist of strings that represent end of file for prolog.
nil means send actual operating system end of file.
You can customize this variable.