Thank you... but it's not working.
Using 'keystroke' is not going to work for me because 1) the pesky
program
*does* in fact clear the keyboard buffer, and 2) i cannot be sure how
long
the program will run before it begins looking for that "\r". So I'm
back
to the pipe idea. Except that when I try running a loop of "echo -ne
'\r'"
and pipe this into dosemu I get the following error:
ERROR: slang_keyb_init(): Couldn't tcgetattr(kbd_fd,...) errno=22
Any idea what this is? But more importantly, any idea about how to get
beyond this?
Alistair MacDonald wrote:
>
> On Tue, 27 Jun 2000, Michael B. wrote:
> > I set it up to use "autoexec.bat" so that I can run the
> > whole deal in batch.
> [...]
> > Everything works except for one problem.
> > When this program is finished it insists that a user
> > interactively press the "Enter" key before it will clean
> > up and go away properly.
>
> Try 'keystroke' -- You'll find information on this under "Running a
> DOS-application directly from Unix shell" in the README.
>
> If this doesn't work then its probably because your application clears the
> keyboard buffer at various points. If that is the case then you could try
> using a stream but only send the <ENTER> key stroke after a certain period
> of time -- have a separate process which sleeps and then sends the
> command.
>
> Alistair