lua-users home
lua-l archive

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


On 13.03.2012 18:39, Sam Roberts wrote:
On Tue, Mar 13, 2012 at 10:30 AM, Bernd Eggink<monoped@sudrala.de>  wrote:
In bash (I'm on Linux, as you may have guessed) I would do this:

        result=$(xterm -e "B>&3" 3>&1)

This doesn't work:

io.popen[[xterm -e "B>&3" 3>&1]]

?

No, since B communicates with xterm via fd 0 and 1 (sorry, I forgot to mention that) - things like setting text cursor position, querying mouse state etc.

Bernd

--
Bernd Eggink
http://sudrala.de