lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I assume you use Freepascal on Linux:

http://www.freepascal.org/docs-html/rtl/oldlinux/
http://www.freepascal.org/docs-html/rtl/oldlinux/signal.html

or

http://www.freepascal.org/docs-html/rtl/baseunix/
http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html


On 6/27/06, Geo Massar <luageo@charter.net> wrote:


Hi, all

LuaTut, the Pascal clone of lua.c, does exit quitely whenever ctrl-C is
pressed, no message other than "^C". I had to comment out the signal
functions in the docall function. There is no Pascal equivalent for them.
Pascal has its own mechanism to catch those signals.

If the purpose of the signal function is to catch ctrl-C signals and it is
only one reason, won't it be good idea to move the signal functions inside
of the pcall function and add a new status code for the user interrupt, say
LUA_USERINT, to the other error codes?

Thanks.

Geo



--
Anders