zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-users@zsh.org
Subject: Re: delete key :(
Date: Thu, 01 Nov 2012 12:54:08 +0000	[thread overview]
Message-ID: <20121101125408.0d49cd6b@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <5091BDEB.5050208@eastlink.ca>

On Wed, 31 Oct 2012 17:10:19 -0700
Ray Andrews <rayandrews@eastlink.ca> 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


  reply	other threads:[~2012-11-01 13:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-31 13:40 question about zargs Han Pingtian
2012-10-31 14:25 ` Peter Stephenson
2012-10-31 16:30   ` Bart Schaefer
2012-10-31 22:32     ` Han Pingtian
2012-11-01  0:10       ` delete key :( Ray Andrews
2012-11-01 12:54         ` Peter Stephenson [this message]
2012-11-01 15:21           ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121101125408.0d49cd6b@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).