From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 797 invoked by alias); 1 Nov 2012 13:04:17 -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: 17371 Received: (qmail 4647 invoked from network); 1 Nov 2012 13:04:15 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) Date: Thu, 01 Nov 2012 12:54:08 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: delete key :( Message-id: <20121101125408.0d49cd6b@pwslap01u.europe.root.pri> In-reply-to: <5091BDEB.5050208@eastlink.ca> References: <20121031134007.GA9731@localhost.localdomain> <20121031142546.529e1709@pwslap01u.europe.root.pri> <121031093018.ZM11752@torch.brasslantern.com> <20121031223206.GA19590@localhost.localdomain> <5091BDEB.5050208@eastlink.ca> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-TM-AS-MML: No On Wed, 31 Oct 2012 17:10:19 -0700 Ray Andrews wrote: > Just a quick mini-bitch. Playing with the Salix distro, I imported > all my ~/.z* files, and got things more or less working ok, except > that a few standard keys didn't work, like 'delete' prints a tilde, > etc. It needs to query termcap (which is the interface we're still using, but is mostly good enough) for the information about the key and then bind it. There's already special-case code in zle_keymap.c to add the bindings for cursor keys. Needs some modification of zsh.h and init.c to add the termcap strings (kD delete, kI insert, kh home, can't see end offhand although it's there in terminfo ...hmm, we do have a terminfo library add-on, could use it to query for kend). Apart from arranging to use terminfo, which needs something thinking about loading dynamic libraries, it should be a relatively easy job for a volunteer. pws