1. wait_key() in 2.5 alpha
- Posted by "Juergen Luethje" <j.lue at gmx.de>
Nov 28, 2004
-
Last edited Nov 29, 2004
Hello Rob,
I tested the following program, using Eu 2.5 alpha on Windows 98.
include get.e
procedure ignore(object x)
end procedure
puts(1, "Press any key ...")
ignore(wait_key())
It ran as expected when interpreted with ex.exe and exw.exe, when
compiled with DJGPP as a DOS program, and when compiled with Watcom
as a Windows program.
When compiled with Borland as a Windows program, it also works fine
with most keys, but when I press [Enter], I have to press another
key thereafter (either [Enter] again or any other key), in order
to terminate the program!
Regards,
Juergen
--
Have you read a good program lately?
2. Re: wait_key() in 2.5 alpha
Juergen Luethje wrote:
> I tested the following program, using Eu 2.5 alpha on Windows 98.
> }}}
<eucode>
> include get.e
>
> procedure ignore(object x)
> end procedure
>
> puts(1, "Press any key ...")
> ignore(wait_key())
> </eucode>
{{{
>
> It ran as expected when interpreted with ex.exe and exw.exe, when
> compiled with DJGPP as a DOS program, and when compiled with Watcom
> as a Windows program.
>
> When compiled with Borland as a Windows program, it also works fine
> with most keys, but when I press [Enter], I have to press another
> key thereafter (either [Enter] again or any other key), in order
> to terminate the program!
Yes. The need for two Enters with Borland was reported before.
I haven't figured out how to fix that.
Thanks,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com