Wednesday, February 20, 2019

GVIM: alt/meta keys: inconsistent results for getchar(0)

Hi!

When I run this code in Windows GVIM and press, e.g., <m-down> in a row:

sleep 1|for i in range(10) | echo string(getchar(0)) | sleep 50m | endfor

I get a mix of '<80><fc>^H<80>ku' and '<80><fc>^H'.

When I increase the timeout to 150m, I get only '<80><fc>^H<80>ku', which seems correct.

Is this expected? Is it a bug? Is there another way to make sure I get the right key code other that using sleep?

Regards,
Tom

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: