You might try redirecting the input from the console to a file, using the redirection operator '<'
The file would consist of a single character, ASCII 13.
A simple way to generate the file is to type in the following at the DOS prompt:
COPY CON: C:\EOL.TXT [ENTER] [ENTER] [CTRL-Z] [ENTER]
This creates the file "C:\EOL.TXT" ( a two-byte file, ASCII 13 & ASCII 10 )