Re: X11 GUI i18n
- Andrew Rodionoff wrote:
> [...]You can't use <Esc>-char when you want to insert the character with the 8th
> >> I've also included new option 'metaesc', aimed to make GUI Vim send
> >> <esc> before Meta-modified key, like xterm does. This one supposed to
> >> solve a problem of entering Meta-modified 8bit chars.
> BM> There are a few problems with this:
> BM> - An extra option. Would be better if meta keys work the same way always.
> BM> - Using <M-x> in mappings won't work when 'metaesc' is set.
> I see your point. I guess the whole meta-key recognition can be rewritten
> to use <Esc> as a prefix. I know at least one editor that use similar
> approach, it's John Harper's Jade.
bit set, like it's done now. You don't want to insert the <Esc> anyway, thus
it would only be for mappings.
> BM> - Using an ESC causes trouble in Insert mode, it's not normally used forI don't like side effects like this. The GUI uses CSI to avoid this mixup of
> BM> special keys in the GUI.
> It's a matter of setting 'esckeys' option. It can be force-set when
> 'metaesc' is being set.
the <Esc> key and special keys using <Esc>. I want to keep it that way.
There already is a special code for prepending a modifier to a character, I
don't see why a new mechanism is needed.
> BM> It's not clear what problem this option is trying to solve.You mean that when you have a character for which the 8th bit is already set,
> I guess I speak English like Two Conkers from Discworld Noir do :) It's
> apparently a problem of i18n. When one is typing 8-bit (I mean 8th bit on)
> text, he can't use Meta-combos to trigger macros. Meta-modified key and
> actual keysym just appear to be the same.
the META modifier can't be noticed? Well, that should be solved by putting a
META modifer code before the character. It's quite simple to change the code
for this. I'm not sure if mappings with <M-x> (where x is a character with
the 8th bit set) work right away, please check that in the next version.
Give a man a computer program and you give him a headache,
but teach him to program computers and you give him the power
to create headaches for others for the rest of his life...
R. B. Forest
/// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///