From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6583 invoked by alias); 29 Jul 2015 16:52:21 -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: 20362 Received: (qmail 26814 invoked from network); 29 Jul 2015 16:52:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1438188329; bh=XLq8wBpInB61WWWpcpKVP6f3hY8vmI+1Ixc1ov4qp0s=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=kybrcV4lw0GOOmUS5tWAY8SqIWPchGdbMdKh8w6o3uHZYO0DzcI8aANXOuvIlgZB7I2YFZWdAUxA8KvSkPv2lurIVSB2Itk3fh6h/M9sYzTdDZlnYdOo4cvcMEP+wshFASXiTEV5AaJcRiqwGQICUEgTMkhXMUlU763wpje5IM/UgQe8BX1M5N4xD2UnogJli6XuNDDG/5x8WLX1jOeP6g/x/pYDAScGAKfxpoKFemnQuGqoDO575Liiov/hvOknTZJRZ/TP/ZUzvE/g+IxK1+vXnJlyJil6Jgm+8pe+kfwwgAlbVBUE8VvSjNGvngSFLZVyGlaSSmx0KLMNCKSA2w== X-Yahoo-Newman-Id: 624891.65385.bm@smtp118.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Bg_daZEVM1ntKn0gvjODMYTWO1uvYno.UpUPS.DzdvkTa8J 5tSiv.sNTPWa3C9kedSTDUcPb.lIQ573MjdTuNchfyXtT3C9CYdWG6k.5vIH ciZw19DURpF0cIL7X0UpDR437xtVwncht7dsytUCtxb4WQUarHD3vzbj.uRN bGbM.J420ahmShx2SlAVeTKtgI6efNfjBColGXpkhex9NeoKwejelg9scrvb dsVEZqDPq0RgYvHeBiEc5ozojW3cACdVmuscoWfKrTmIUffLq542J7HyT_OW Qp98enty4SyFHyR5lB0fjL2k69oGyvRitk7P9kXKUoLkjAzQfRp1GrbYLylM 8ojz8BQFc2VCWvucjwzS1HvMXlTAM7we7xEOtx4OekbkDGMsx64aqWxcWGFe AolD1ZPCkIcQkAuMXYzCLPibVnyOS9EcmhSNZt6aENwv4exOsBEsf2.NBeR7 iRAu7vICrpik6xu0hVYjjjL4KikFAANjta1hFTb0zWH3RhD2VIQMe6SjgsKj 9h5lhv0qAS6Z3LwebLvr4Jbk4p1DAAQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: From: Oliver Kiddle References: <5d9984411ba10dee4321a408e2763317@riseup.net> <9361.1438161965@thecus.kiddle.eu> <150729083027.ZM10252@torch.brasslantern.com> To: Zsh Users Subject: Re: Vimode problem (key press dropping) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12756.1438188328.1@thecus.kiddle.eu> Date: Wed, 29 Jul 2015 18:45:28 +0200 Message-ID: <12757.1438188328@thecus.kiddle.eu> Mikael Magnusson wrote: > Well, what almost always happens is we eat the ^[[1 part and insert > the ~ literally, which is confusing. If we literally inserted the > whole ^[[1~ string, it would be more obvious for a user what they had > to put in their keybind commands. "You can run cat and press the key > to see what it sends" "oh, okay". With a default setup, that tends to happen because at some point the sequence read so far is no longer recognised as a prefix. Once you've bound a few keys, that's less likely. We could alleviate this issue by binding a few more keys by default at startup. Insert, Delete, Home, End, Page Up/Dn and the function keys all have termcap entries. Is there really a good reason not to bind at least the first four of these. What was the historical reason for not doing so? Also, anyone know why the sequences for the cursors need to be passed through tputs()? overwrite-mode for insert and delete-char for delete is probably not controversial. For home and end, it'd either be beginning-of-line and end-of-line or the -buffer-or-history versions. Others don't have an obvious binding. I also wonder whether we should consider trying to do something for Ctrl/Alt Left and Right to make it easier for new users. Oliver