Skip to content
Snippets Groups Projects
Commit 1ebbc545 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Allow multiple mouse reporting modes to be set/clear by passing array

This (ever so slightly) optimizes the transmtited ANSI sequences
parent d5b7f937
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,9 @@ function mouse_reporting_modes(mode)
if(mode == 'all')
for(var i in defs.mouse_reporting)
list.push(defs.mouse_reporting[i]);
else if(typeof mode == 'array')
for(var i in mode)
list.push(defs.mouse_reporting[mode[i]]);
else
list.push(defs.mouse_reporting[mode]);
return list.join(";");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment