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

Re: $terminfo for up and down arow



Quote from ticket:
"""
I have found the problem. It's an upstream bug, as I have suspected,
but I have also found the way to get around it.

I am defining three functions with the same function body to not
repeat myself. Even though I have verified that the functions have
been defined properly, they exist, my zle-line-init and
zle-line-finish are not being called. Something must have changed in
recent Zsh versions that affects this.

When I split that code into three distinct function definitions, it works.
"""

version 5.0.5 is also affected

On Wed, Jan 8, 2014 at 10:38 AM, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Frank Terbeck wrote:
> [...]
>> zle-line-init () {
>>     (( ${+terminfo[smkx]} )) && echoti smkx
>> }
>> zle-line-finish () {
>>     (( ${+terminfo[rmkx]} )) && echoti rmkx
>> }
>
> For the record, you also need to make these known as widgets for zle to
> pick them up, so:
>
>     zle -N zle-line-init
>     zle -N zle-line-finish
>
> 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