sidorares / node-rfb2

rfb wire protocol client and server
MIT License
139 stars 27 forks source link

Remote cursor shape #24

Closed Madd0g closed 7 years ago

Madd0g commented 7 years ago

I did some googling and it seems like some RFB clients support remote cursor shape. I mean when the cursor shape changes on the server to something like resize or text, I want to receive that event on the client.

Is that currently supported or planned?

Thanks

sidorares commented 7 years ago

hi! Not supported, but I'm happy to add it ( no promise on timing though if I do it myself )

looks relatively simple - Cursor Pseudo-Encoding

sidorares commented 7 years ago

hi @Madd0g - added and published as @v0.1.0

api: rect with encoding set to rfb.encodings.pseudoCursor. rect.data = same as raw rectangle ( cursor visible pixels ) rect.mask - bitmap, mask ( one bit per pixel ). rect.x, rect.y - cursor hostspot location

When this is enabled at connection time server does not display cursor, but sends cursor update events ( as rectangles with pseudoCursor encoding ) each time cursor shape is changed