Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Calling a zle widget from a function



Peter Stephenson <pws@xxxxxxx>:
> Angel Olivera wrote:
> > So I would love to be able to call zle's clear-screen widget from the
> > function.
> > 
> > redondos@refinery ~ % zle clear-screen
> > zle: widgets can only be called when ZLE is active
[...]
> This doesn't work with 4.2 where sched is only run synchronously and
> never from zle.  I think you'd have to do it in two steps: have the
> timeout set a flag, and have some zle hook look at the timeout.  But
> hooking into zle at that depth is quite painful.

So, that means that (no matter if using v4.2 or v4.3) you cannot call
widgets from the commandline, right?

And how would you 'hook' into zle? I don't know what you meant by
that.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



Messages sorted by: Reverse Date, Date, Thread, Author