From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 25973 invoked from network); 14 Apr 2020 19:39:15 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 14 Apr 2020 19:39:15 -0000 Received: (qmail 4248 invoked by alias); 14 Apr 2020 19:39:09 -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: List-Unsubscribe: X-Seq: 24772 Received: (qmail 1075 invoked by uid 1010); 14 Apr 2020 19:39:09 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-11.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25779. spamassassin: 3.4.4. Clear:RC:0(80.0.253.75):SA:0(-2.8/5.0):. Processed in 2.725839 secs); 14 Apr 2020 19:39:09 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _smtprelay.virginmedia.com designates 80.0.253.75 as permitted sender) X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=Is6qj43g c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=tuT01P_8gYvetDuFlb4A:9 a=QEXdDO2ut3YA:10 Message-ID: <8868e9f156eaa662c423a8ec323fa2b7b6bfdce7.camel@ntlworld.com> Subject: Re: How do I finish this key-binding (for PageUp-Down) From: Peter Stephenson To: zsh-users@zsh.org Date: Tue, 14 Apr 2020 20:38:27 +0100 In-Reply-To: <20200414192459.GA20687@panix.com> References: <20200414192459.GA20687@panix.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfBC9OaVzL2GxXj67MGZHBzo/Rt0wqN1tuxLNopbpe5ZTr8/he+cqOUYY4HWES1TYO6XNDfZi5uTyY7LytmjMkuc0TVbto1LEKtJhVE6dobBATswHbf/B Ic1SLnSF6E9fqomhsKKYsCy1I/AQK9boHPCzwp/gQ3bqTCibsjvq/s8r On Tue, 2020-04-14 at 15:24 -0400, rj wrote: > I'd like to change - to a simple one-keystroke for > scrolling in zsh in the terminal. So that I only have to press to > scroll back. > > I currently have this partial keybinding for this: > > bindkey "^[[5~" > > That's the mapping for PageUp -- ^[[5~ -- but what word-command do > I use on the right half of this line to accurately represent the action of > holding the shift-key and then pressing the PageUp key? If you're scrolling zsh in the terminal, that's a terminal command, not a zsh command --- it's the terminal that manages scrollback. I take it that is what you mean, you don't want to access the shell's own history (which is indeed a "bindkey")? How you do that varies depending on the terminal --- modern ones have a menu for this, but if its xterm you need to use an Xdefaults text file. pws