zsh-users
 help / color / mirror / code / Atom feed
From: "David Gómez" <david@pleyades.net>
To: Zsh-users <zsh-users@sunsite.dk>
Subject: Re: bindkey and widgets
Date: Sun, 21 Mar 2004 22:26:38 +0100	[thread overview]
Message-ID: <20040321212638.GA32667@fargo> (raw)
In-Reply-To: <1040321170157.ZM25009@candle.brasslantern.com>

Hi Bart ;);

> So you need to find out what that sequence is.  The easiest way may be
> to type Ctrl+v (which usually means "quote next character") and then
> Ctrl+RePag and see what appears.  If it looks like ^[[5~ (^[ is another
> way to write \e), then your keyboard and/or terminal emulator does not
> distinguish the ctrl modifier for function keys. 

Yes, it looks the same, whether the Control key is pressed or not, so
it seems my terminal emulator is sending the same sequence in both
cases.

> It may be possible to program your terminal emulator to recognize ctrl
> with function keys, but that's beyond what I'm prepared to explain here.

You explained enough and have been very helpful, thanks ;). I've just seen
another response from Raúl that explains a solution to modify my keymap
to generate a different sequence to ctrl+repag, so i'll try that.

> Creating a widget is probably the best way because it doesn't depend on
> any other bindings.  However, you can use "bindkey -s".

It's a better solution, that's true. But i think that a keybinding like
'\e{' is also a good solution, and i my case i don't have custom keybindings
with the escape sequence, so it's a rather safe solution.

Thanks again ;) 

-- 
David Gómez

"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra


  reply	other threads:[~2004-03-21 21:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-21 14:31 David Gómez
2004-03-21 17:01 ` Bart Schaefer
2004-03-21 21:26   ` David Gómez [this message]
2004-03-21 18:18 ` DervishD
2004-03-21 21:51   ` David Gómez
2004-03-22 14:52     ` DervishD
2004-03-22 16:02       ` David Gómez
2004-03-22 17:53         ` Eric Mangold

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=20040321212638.GA32667@fargo \
    --to=david@pleyades.net \
    --cc=zsh-users@sunsite.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).