Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bindkey and widgets

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

> 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