From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7840 invoked by alias); 13 Dec 2016 01:56:06 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40170 Received: (qmail 16013 invoked from network); 13 Dec 2016 01:56:06 -0000 X-Qmail-Scanner-Diagnostics: from smtprelay01.ispgateway.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.67.29.23):SA:0(-0.7/5.0):. Processed in 1.135311 secs); 13 Dec 2016 01:56:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: ft@bewatermyfriend.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Teubel =?utf-8?Q?Gy=C3=B6rgy?= Cc: zsh-workers@zsh.org Subject: Re: [PATCH] Bind quasi-default Home, End and Delete keys in built-in keymaps 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") References: <20161212153933.4619-1-tgyurci@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Date: Tue, 13 Dec 2016 02:27:57 +0100 Message-ID: <87a8c07h42.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: NDMwNDQ0 Hi. Teubel Gy=C3=B6rgy 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=C2=B9 for example. Regards, Frank =C2=B9 https://anonscm.debian.org/cgit/collab-maint/zsh.git/tree/debian/zsh= rc --=20 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