From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4389 invoked by alias); 19 May 2014 10:57:37 -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: 18832 Received: (qmail 2524 invoked from network); 19 May 2014 10:57:30 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Thorsten Kampe Subject: Re: Zsh changes on Ubuntu Date: Mon, 19 May 2014 12:57:08 +0200 Message-ID: References: <87iop4zoih.fsf@ft.bewatermyfriend.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p579b2465.dip0.t-ipconnect.de User-Agent: MicroPlanet-Gravity/3.0.4 * Frank Terbeck (Sat, 17 May 2014 12:29:58 +0200) > > Since ubuntu is debian's downstream, I'm pretty sure this may be tied to > a change in debian's global zshrc: In pre-5.x packages, debian used a > rather broken approach trying to read escape sequences for special keys > from the terminfo database. > > Starting with the package for 5.0.0 and onward¹, that was fixed by > setting the terminal zsh is running in into the correct mode for the > values from terminfo to be applicable while zsh's line editor (ZLE) is > running. This was done to make the setup work across as many different > terminals as possible. > > If you had bound keys to hard-coded escape sequences that worked outside > of that mode, those may be invalid with that mode active. To bind > something to - say - the Up-Cursor key, you'd do this: > > bindkey "${key[Up]}" some-widgets-name > > To get a list of valid keys for the ‘$key[]’ map: > > print ${(k)key} > > We also added an entry to the package's NEWS file about this change². > The file also mentions a "Get out of my way, I know what I'm doing!" > variable, that serves as a way to disable the package's keyboard setup, > should you want to go a different route. "export DEBIAN_PREVENT_KEYBOARD_CHANGES=yes" in .zshenv did the trick. Thanks, Thorsten