On Tue, Apr 17, 2012 at 12:59:53PM -0700, Ben Fritz wrote:
> We've had this discussion many times. I think everybody agrees it's a
> feature that's wanted. Yet nobody, including LeoNerd, has come forward
> with any code whatsoever, working or not. If it was actually a simple
> "copypaste some .c code and it will work" sort of problem, then it
> would be done by now.

OK.

1) I have never been anywhere near vim's source code.

   However, if someone here could tell me:
   
   a) what to type to obtain working checkout
   
   b) which file/line ultimately contains the code to insert a new
      keypress into the pending queue when read from the terminal

   c) how to use CSI_SPECIAL to insert arbitrary modifiers, such as
      Ctrl-Shift-I.

   Then I'll have a jolly good go at making this work.

   Specifically, I'd love to see an example of some silly code somewhere
   that just inserts something silly, like Ctrl-Shift-I once.

2) Take a look anywhere near libtermkey:

   http://www.leonerd.org.uk/code/libtermkey/

   Specifically the little demo at

   http://www.leonerd.org.uk/code/libtermkey/overview.html

   Observe that it has the ability to represent all of this lot just
   fine.
   
   Granted /and I accept/ that you will need a specially-configured
   terminal to get "non-traditional" keypresses out of it like Ctrl-I or
   Ctrl-Shift-[letter], but even without that, it will handle Escape vs.
   Alt+letter vs. UTF-8 absolutely fine on any standard terminal. It's
   this part most of all I want to add to vim, so everyone will benefit.
   The fact I'll be able to map Ctrl-I and Ctrl-Shift-A and so on will
   just a small added bonus.

-- 
Paul "LeoNerd" Evans

[email protected]
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui