Paul LeoNerd Evans wrote:
> On Fri, Apr 18, 2008 at 02:02:37AM +0200, Bram Moolenaar wrote:
> > The idea of termcap/terminfo is that you don't force terminals to send a
> > specific escape sequence and don't force applications to accept a
> > certain sequence. You make a table that specifies it, so that you can
> > use any terminal with any application.
>
> > The current termcap/terminfo implementation is terribly outdated,
> > obviously, but that doesn't mean we now should drop the idea and
> > set the escape sequences in stone.
>
> Sure. Then lets discuss that. There's no reason we have to take one side
> or the other - both can be made to work together.
>
> After all, even libtermkey has to know -somehow- that CSI function key 2
> is really Insert, etc... Perhaps it could know that by parsing CSIs
> found in the terminfo database anyway?
>
>
> In any event, I think my actual point got lost here. My actual point
> was:
>
> Vim's core needs to deal with abstract keypresses, not sequences of
> bytes. This will allow all sorts of nice things from the GUI and
> similar.
>
> My suggestions on the terminal end of things are moreorless an
> afterthought.
>
> With a nicer more abstracted core, I see no reason why 'vim' itself
> can't stick to using prefix matching of terminfo strings, and there to
> be a new frontend, perhaps 'tvim', which feeds key input using my
> libtermkey, in a similar way to 'gvim' which feeds it from GTK.
I don't see the point. The connection between the terminal and Vim is a
byte stream. Vim needs to decode the bytes somehow to extract keys that
were pressed. Since Vim supports many terminals, this decoding needs to
be done by defining what each byte sequence means for each terminal. I
don't see a way around this. Also keep in mind that mappings can be
used to map raw byte sequences, before the decoding happens. So you
can't filter the byte sequence before sending it to Vim.
--
ARTHUR: Shut up! Will you shut up!
DENNIS: Ah, now we see the violence inherent in the system.
ARTHUR: Shut up!
DENNIS: Oh! Come and see the violence inherent in the system!
HELP! HELP! I'm being repressed!
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---