Thanks! That is clear. Given that description I think the pango support is broken: 'ESC' always produces the event 'ESC' and is not usable for meta.
If that is the case then I question the value of implementing this in vty. If an implementation would have to be made for pango, and other UIs, then the functionality can be left out of vty with no increase in complexity to yi. I don't know of another application that uses vty's emacs emulation. So might as well focus on yi ;-) I'm going to work under that assumption for now. Which means that ESC for meta is broken with vty 5. Hrm. Cheers, Corey -Corey O'Connor coreyocon...@gmail.com http://corebotllc.com/ On Wed, Jan 22, 2014 at 11:27 PM, Mateusz Kowalczyk <fuuze...@fuuzetsu.co.uk > wrote: > On 23/01/14 01:36, Corey O'Connor wrote: > > Hi all, > > Can somebody clarify what the desired behavior is for ESC and emacs > > emulation? This is not something I actively use and am actually > unfamiliar > > with the history. I'd like to get the behavior right in vty 5. :-) > > > > As I understand it: Escape can be used as meta in emacs. Emacs does this > by > > waiting a bit after an ESC key is pressed for any additional key. If a > key > > is pressed the event is a meta+key event instead of an esc event followed > > by a key event. > > > > Does this sound right? > > > > Cheers, > > Corey > > > > -Corey O'Connor > > coreyocon...@gmail.com > > http://corebotllc.com/ > > > > Hi, > > There's no time delay as far as I know, a single ESC will just wait > indefinitely for the next input. So ESC followed by some key K is > translated to M-K. ESC ESC K is translated to ‘ESC M-K’ and so on which > is reasonable considering you can't have more than one meta press in a > combination. I believe that the first instance works already and ESC > gets translated correctly. There's a problem with getting ‘ESC M-K’ as > Yi is not able to provide variable number of prefix arguments easily (we > should probably fix that) similarly how we can't have multiple ‘C-u C-u > C-u …’ but it is not a problem inherent to ESC. > > I hope that's clear. > > -- > Mateusz K. > > -- > -- > Yi development mailing list > yi-devel@googlegroups.com > http://groups.google.com/group/yi-devel > --- > You received this message because you are subscribed to the Google Groups > "yi.devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to yi-devel+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel --- You received this message because you are subscribed to the Google Groups "yi.devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to yi-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.