On Sun, Jun 22, 2008 at 1:03 PM, Nicolas Pouillard <[EMAIL PROTECTED]> wrote: > Excerpts from Jean-Philippe Bernardy's message of Sun Jun 22 12:40:41 +0200 > 2008: >> >> hmmm, strange... >> >> I had 'Yi.Keymap.Keys.char' generate KTab as necessary >> and added >> fromVtyKey (Vty.KASCII '\t') = Yi.Event.KTab > > At least here, it was broken before the introduction of KTab. > >> So everything should have worked. Actually, it works (here) with the >> emacs keybindings, so I think Yi.UI.Vty is not to blame. > > Hum for me even the emacs keymap is broken in vty. > > Adding a debug message in the Vty UI: > > line 101 > > logPutStrLn $ "UI: Event: " ++ show event > > Reveal me that hitting TAB produce: > > ... > UI: Event: EvKey (KASCII 'i') [MCtrl] > ... > > Which is really strange since other tools works fine and xev show me a TAB > event.
This is probably a bug in the vty library. The problem is that it hardcodes all the terminal-specific stuff; which means it's very sensitive to the kind of terminal you have. Maybe Corey has done some work on it recently? In the meantime we could add a the workaround that (KASCII 'i') [MCtrl] is translated to Tab in Yi.UI.Vty; or bind that event in Vim. Cheers, JP. --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list [email protected] http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---
