lua-users home
lua-l archive

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


On Tue, Nov 2, 2010 at 9:39 AM, Lorenzo Donati
<lorenzodonatibz@interfree.it> wrote:
> I hope someone has found a clever trick that can solve my problem. :-)

I don't know if this is very clever, but you can edit the command that
SciTE uses to launch Lua.  If you open lua.properties (it will sit
next to SciTEGlobal.properties, next to the SciTE executable) then
this command is specified like so towards the end:

command.go.*.lua=lua -e "io.stdout:setvbuf 'no'" "$(FileNameExt)"

It's already been customized to make sure that standard output is not buffered

Now if you change that line to:

command.go.*.lua=lua -e "SCITE=true; io.stdout:setvbuf 'no'" "$(FileNameExt)"

then there is always a global variable called SCITE defined when
running from SciTE, and you can then make your pause conditional.

steve d.