Is there a command in the Lua API to take a screenshot (like pressing p does)? If no, can this be added? I think it would be very useful to record screenshots/videos automatically
I'm sure this could be done. Especially if there was a function in the API that compressed things using bzip2. Although a bitmap or a PPM could do it already, they would just be large.
EDIT: Actually, if you can do this, you could just send the keycode to the program and fetch the screenshot?