On Sun, May 02, 2004 at 07:03:22PM +0200, Konstantin Kletschke wrote:
> How do I call something like
>
> make_exec_fn("mpc pause") and immediately mpc_status_osd on F10?
make_exec_fn is simply a convenience function that returns a
wrapper around exec_in:
function make_exec_fn(cmd)
return function(reg) exec_in(reg, cmd) end
end
I'd guess you don't even need to set the environment point to the
correct screen, so you just create a function
function foo()
exec("mpc pause")
mpc_status_osd()
end
and bind this. (Supposing you don't want mpc pause to finish before
displaying the OSD.)
--
Tuomo