On Sat, 04 Oct 2014 15:43:34 +0200
Bram Moolenaar <[email protected]> wrote:

> Perhaps you were complaining about terminal emulators?

I've been complaining about terminal emulators for years.

But more than that I've got out and actually tried to do something to
fix them in this regard. I worked with Thomas Dickey to design a new
scheme for universally encoding any modified keypress, Unicode-printing
or special, on a terminal.

  http://www.leonerd.org.uk/hacks/fixterms/

To be clear - this is a small extension of the existing scheme that
remains 100% backward compatible - any keypress that could be detected
before, is still sent the same way. This just gives a new way to encode
new keypresses that previously did not make sense.

I then went and wrote a virtual terminal emulator library and
GTK2-based wrapper program that uses it

  http://www.leonerd.org.uk/code/libvterm/
  http://www.leonerd.org.uk/code/pangoterm/

I then wrote a keyboard input library and surrounding terminal UI
system that uses it

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

All that remains to be done is for programs that attempt to interpret
incoming keypresses be suitably adjusted so as to understand these new
incoming byte sequences, and all will be sorted, and then finally OP
will be able to type Ctrl-I properly, as was his want.

I have been talking with the Neovim project on the subject of a modern
UI toolkit for use in the terminal frontend. Whether or not they end up
using libtickit for this, they are still aware of the improvements and
modernisations I have been working on, and when the time comes for them
to rebuild the terminal frontend properly I'm quite confident they'll
be in a position to support all these modified keypresses. If you
wanted the same support in core vim, all you'd need to do is implement
the key encoding scheme, as given in the first link.

I am done complaining. I am done fixing it. As far as I'm concerned it
is now fixed. All that remains is for other people to come and join the
party.

Will you be one of them?

-- 
Paul "LeoNerd" Evans

[email protected]
http://www.leonerd.org.uk/  |  https://metacpan.org/author/PEVANS

Attachment: signature.asc
Description: PGP signature

Raspunde prin e-mail lui