Permalink
Browse files

implement cutText

  • Loading branch information...
1 parent 5e69959 commit ae00523eb55efbe56dc91853ecca0e41847cf40e @pkrumins committed May 8, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/messages.js
View
@@ -36,7 +36,12 @@ exports.serverMsg[serverMsgTypes.bell] = function (rfb, opts) {
};
exports.serverMsg[serverMsgTypes.cutText] = function (rfb, opts) {
- rfb.emit('warn', 'cutText not implemented');
+ this
+ .skip(3)
+ .word32be('textLen')
+ .tap(function (vars) {
+ this.skip(vars.textLen);
+ });
};
exports.serverMsg[serverMsgTypes.fbUpdate] = function (rfb, opts, pf) {

0 comments on commit ae00523

Please sign in to comment.