Am 2004-05-02 20:19 +0300 schrieb Tuomo Valkonen:

> 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 knew that slightly, and began to think about a function
implementing the thing I wanted to just you did know...

> 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.)

Yes, all os_execute were rplaced by exec. 
And that is the way it works, cool, thanks tuomo. 
And how easy was that btw? Damn, I am getting old :P
Seems I forgot basic programming skills over the weekend!

Regards, Konsti
 

-- 
2.6.5-mm1
Konstantin Kletschke <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
keulator.homelinux.org up 1:52, 9 users

Reply via email to