I mentioned Lua because kindlevncviewer is scripted in Lua. But it is only prepared to send keystrokes (and, by the way, mouse pointer actions, i.e. absolute "movements") to the VNC server. So - not via PuTTY/SSH, but via VNC.
Just to get things straight: You want to forward the screen, too? And you want to use the "webserver" based way, i.e. emonitor? Or VNC? Via eMonitor, I guess your options are restricted to what the web browser actually can offer via event interfaces (I have no idea if it would work at all). Via VNC, and the vncviewer on the Kindle, you just have to push the proper events to the VNC server. You would probably have to extend
https://github.com/hwhw/kindlevncvie...ter/config.lua to handle all the keys that the K4 offers (all keys handled now are K3/KDX centric). When you look at the file, you see the logic that sends a key event to the server - using the XK_Keyname constants - when a keypress is seen on the Kindle (the KEY_... events). K4 keys would probably have to be added. I'd add a line at the bottom, after all the
Code:
elseif code == KEY...
lines, that looks like this:
Code:
else print("unknown key event, code", code)
and then see what it outputs on console when you press the K4 keys. When you have the event codes, you can add your own lines, sending keystrokes to the VNC server.