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 > [email protected] > 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 [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
