Yasuhiro Matsumoto wrote: > function! s:getchar() > while 1 > let key = getchar(0) > if key != 0 > break > endif > endwhile > echo key > endfunction > call s:getchar() > > When run script above and type ESC, it should show 27. But doesn't. > vgetc() doesn't return ESC key code 27. So I wrote a patch to use > vgetc_any() instead of vgetc(). > > https://gist.github.com/mattn/5fd341c1875b34730dfa
Thanks. Did you check that it still works to obtain a special key? -- If you feel lonely, try schizophrenia. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
