Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bindkey and widgets
- X-seq: zsh-users 7221
- From: David Gómez <david@xxxxxxxxxxxx>
- To: Zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: bindkey and widgets
- Date: Sun, 21 Mar 2004 22:26:38 +0100
- In-reply-to: <1040321170157.ZM25009@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040321143156.GA31236@fargo> <1040321170157.ZM25009@xxxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author