[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to detect a MSWindows console in pure Lua
- From: Jeff Pohlmeyer <yetanothergeek@...>
- Date: Tue, 2 Nov 2010 03:33:40 -0500
On Tue, Nov 2, 2010 at 2:39 AM, Lorenzo Donati wrote:
> Is there a simple way (stock Lua 5.1.4) to make a Lua script behave
> differently depending on whether it is executed in a MSWindows shell or not?
> I hope someone has found a clever trick that can solve my problem. :-)
I'm not on Windows right now, but does os.getenv("CMDCMDLINE") look
any different between scite vs. console?
- Jeff