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

Re: $terminfo for up and down arow



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