lua-users home
lua-l archive

Re: Detecting interactive mode

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


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

AltStyle によって変換されたページ (->オリジナル) /