halt with timing

Gabor Monostori <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAN5Lht9DYFyG3zwKMWA6zvpvOobTLZ_J2G1hcg-e9uiYW6Dksg@mail.gmail.com>
Hi there,

I made something simple and became puzzled, can you help me?

I put the following lines into pl.ini

:- write('Hello World'),
   alarm(2,halt,Id,[]).

If i start swipl-win.exe(Wind7) the code works; after two seconds the
window is closed.

If i start swipl.exe after two seconds the console is still there, but if i
want to do something after typing new line and pressing 'Enter' the console
closes. Here I expected the window to be closed also promptly.

Is this a bug, side effect or I do smt wrongly?

regards,
Gabor
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.