> 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'.
Additional question: When I press <m-down> only once, I get one '<80><fc>^H<80>ku' and 9 '<80><fc>^H' although no key is pressed at that time.
This can also be done with:
echo getchar()|for i in range(10) | echo string(getchar(0)) | sleep 50m | endfor
Is that expected? In this situation, I'd naivly expect the first getchar() to return '<80><fc>^H<80>ku', and the subsequent getchar(0) to return 0.
--
--
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.
Thursday, February 21, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment