[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Detecting interactive mode
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 24 Feb 2010 11:23:58 -0500
Hi Manel,
On Tue, Feb 23, 2010 at 11:22 AM, JM Fernandez <elcubion@gmail.com> wrote:
> Hello.
>
> I am trying to detect if Lua was launched in interactive mode.
I don't think there is an obvious solution to this problem. Although,
you can inspect the negative args in the arg table (the arguments to
lua itself) [1] to manually check if lua was given the -i option or
whatnot.
[1] http://www.lua.org/manual/5.1/manual.html#6
--
- Patrick Donnelly