Hi list.

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.
- Yasuhiro Matsumoto

-- 
-- 
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.

Raspunde prin e-mail lui