From: mason@primenet.com.au (Geoff Wing)
To: zsh-users@sunsite.auc.dk
Subject: Re: Bindkey + PageUp/PageDown keys
Date: 12 Dec 2000 01:38:15 GMT [thread overview]
Message-ID: <slrn93b0c7.e8m.mason@coral.primenet.com.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0012111309170.2380-100000@ihp-pc7.ethz.ch>
Oliver Grimm <grimm@particle.phys.ethz.ch> typed:
:I'd like to assign some operations like, e.g., vi-beginning-of-line
:to the special keys PageUp, PageDown, Home etc.
:But I don't seem to understand the correct behaviour of the
:bindkey command. Whereas I got with 'bindkey -s a b' the expected
:behaviour, I don't know how to apply this to these special keys.
:In xterm, they are called 'Prior', 'Next', etc. but how do I use
:this with bindkey ?
Your terminal emulator (xterm) will translate the Prior (PageUp)
and Next (PageDown) keys into a character sequence - usually an
escape sequence (i.e. the first character in the sequence is an
escape character). Do a normal bindkey command however you may
need to make zsh quote the first character.
% bindkey '<CTRL-V><PageUp>' vi-beginning-of-line
and you should see something like:
% bindkey '^[[5~' vi-beginning-of-line
You don't want the -s flag to bindkey here since you want to
execute a command.
Regards,
--
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff : <gcw@zsh.org>
next prev parent reply other threads:[~2000-12-12 1:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-11 12:14 Oliver Grimm
2000-12-12 1:38 ` Geoff Wing [this message]
2000-12-13 5:03 ` Bart Schaefer
2000-12-13 6:22 ` Dan Nelson
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=slrn93b0c7.e8m.mason@coral.primenet.com.au \
--to=mason@primenet.com.au \
--cc=zsh-users@sunsite.auc.dk \
/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).