Hey. I want to log all keystrokes by a script running in the background. I know that this is possible as LogKext is built in C++ and does it.
I took a look at the source of LogKext and it is very, very big and not very well documented, so I got nothing out of it. All I got was the maybe they used unistd.h to log it.