I've been running gvim -w /dev/shm/vim_keystrokes
for some time, to collect keystrokes for later analysis. But now I'm looking for some guidance on how to make sense of the binary log file. Here's a snippet, asking less
to render binary data:
I'm looking for at minimum enough information to tokenize this stream, even if I can't make sense of all the tokens. But ideally I'd like to be pointed to a document that can help me properly parse the file.
There is some prior art but with no comments:
https://www.drbunsen.org/vim-croquet/ https://github.com/dstokes/vim-stream
And this SO question suggests gvim is writing garbage to the log in some way, but doesn't provide any clarity:
https://stackoverflow.com/questions/3981535/using-the-w-option-of-vim
EDIT: It looks like three byte sequences starting with 0x80 can be filtered out and represent window events in some way, though I need to look closer.