Paul Evans wrote:
> On Thu, Apr 17, 2008 at 08:25:56PM +0100, Paul LeoNerd Evans wrote:
> > On Thu, Apr 17, 2008 at 09:16:46PM +0200, Bram Moolenaar wrote:
> > > > Vim copes poorly with a variety of different keyboard inputs.
> > >
> > > [...]
> > >
> > > Where does termcap/terminfo fit into your ideas?
> >
> > If libtermkey fails to recognise what comes in as valid CSIs, SS3s or
> > anything else it might recognise, it will just emit plain bytes again.
> > You can then throw those bytes back into the prefix-string-matching code
> > based on the termcap/terminfo strings.
>
> Besides which, it was my understanding that terminfo/termcap really
> don't have very much to say about keyboard input at all. If you're
> lucky, they say "Oh, by the way, the <Down> key might send this
> sequence" and you're on your own to match it. They give you nothing by
> way of modifiers or other interesting things, except perhaps by knowing
> that key_send is really "shift end". Or sometimes I've seen key_end vs.
> key_END. They don't seem to have the arbitrary 2^m * n system that
> libtermkey does (for m modifiers and n keys).
>
> I've always intended that libtermkey can live happily alongside
> termcap/terminfo/curses/whatever; termkey dealing with the terminal->app
> keyboard input, and curses/et.al. dealing with the application->terminal
> driving output. libtermkey only ever reads TTY input, so if curses only
> ever writes it, they should play together very happily.
Sorry, my remark was a bit vague.
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.
--
FIRST GUARD: Ah! Now ... we're not allowed to ...
SIR LAUNCELOT runs him through, grabs his spear and stabs the other
guard who collapses in a heap. Hiccoughs quietly.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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
-~----------~----~----~----~------~----~------~--~---