From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28499 invoked by alias); 10 Jan 2014 12:39:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18300 Received: (qmail 3649 invoked from network); 10 Jan 2014 12:39:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MISSING_HEADERS,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 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== X-Received: by 10.68.190.228 with SMTP id gt4mr11218585pbc.94.1389357540548; Fri, 10 Jan 2014 04:39:00 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <87zjn6x17n.fsf@ft.bewatermyfriend.org> References: <874n5eyhrn.fsf@ft.bewatermyfriend.org> <87zjn6x17n.fsf@ft.bewatermyfriend.org> From: Ivan Brkanac Date: Fri, 10 Jan 2014 13:38:40 +0100 Message-ID: Subject: Re: $terminfo for up and down arow Cc: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 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 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