Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $terminfo for up and down arow
- X-seq: zsh-users 18300
- From: Ivan Brkanac <ibrkanac@xxxxxxxxx>
- Subject: Re: $terminfo for up and down arow
- Date: Fri, 10 Jan 2014 13:38:40 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=cnumd+x1thVyAwHYAIeFAEhwCYQ/tc/Pp8VaWPf8zrE=; b=x1H8szAeDdHmAmMOu9HeuOrpG7aYj60kHdTr6Nm6hrWgMCJ7qZnrJLp3IAdyC4bTo8 0jWLmsPqhN1GiPRVCqar6ekwl6iPASscSDxWN1h08YkuDAbFnLPIRybXfNYc5yypRtMt 1rWU1+pdkbvAb23Rh2ZDlEeK2L3K7uaZc1PIpoY6YJZ7S9cqnnKxKsZwUwrE6rg3I0ub EVYMrs7/CmUy8YZNsXGVA+faCn4+lVNSxBcIg/axi2n9UgPBuqGv+5WsQ/EXGyBj+bqf qDUmDaiLwLP8zDx9IRX3TOxol6FafKOhIQwB3HjgdjKbaD0D+Yf44HRuMCY98Wx/wJ8r uRnw==
- In-reply-to: <87zjn6x17n.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CALRKU=Gv_VELAq9JGg3se_ne8Kn4+GdTS6SJD7FtN2mghPA6ag@mail.gmail.com> <874n5eyhrn.fsf@ft.bewatermyfriend.org> <87zjn6x17n.fsf@ft.bewatermyfriend.org>
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