zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: "Teubel György" <tgyurci@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH] Bind quasi-default Home, End and Delete keys in built-in keymaps
Date: Tue, 13 Dec 2016 02:27:57 +0100	[thread overview]
Message-ID: <87a8c07h42.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <20161212153933.4619-1-tgyurci@gmail.com> ("Teubel \=\?utf-8\?Q\?Gy\=C3\=B6rgy\=22's\?\= message of "Mon, 12 Dec 2016 16:39:33 +0100")

Hi.

Teubel György wrote:
> Make Home, End and Delete keys work by default as expected by most users.
[...]
> +item(tt(beginning-of-line) (tt(^A) tt(ESC-[1~)) (unbound) (unbound))(

Unfortunately, it's not that easy. Those special keys are not stable,
even across a small sample of terminals and terminal emulators. You'd
have to take a look at termcap or terminfo to get a reasonably well
founded escape sequence for them, which also requires the terminal to be
in smkx mode, while the line editor is active.

Zsh does have a terminfo module and it can be used to set up some well
known special keys. But those are best added to a global configuration
file, rather than being hard coded in C. This is what Debian does¹ for
example.


Regards, Frank

¹ https://anonscm.debian.org/cgit/collab-maint/zsh.git/tree/debian/zshrc

-- 
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


  reply	other threads:[~2016-12-13  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 15:39 Teubel György
2016-12-13  1:27 ` Frank Terbeck [this message]
2016-12-13 10:36   ` Teubel György

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=87a8c07h42.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=tgyurci@gmail.com \
    --cc=zsh-workers@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).