From fc227ed50326b3530f072ae98ef25bf0b145c66b Mon Sep 17 00:00:00 2001 From: Mario GLiewe Date: Sun, 1 Feb 2015 13:16:29 +0100 Subject: [PATCH] workaropund: allow forced mouse protocol via env --- lib/program.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/lib/program.js b/lib/program.js index 1259840..7a19687 100644 --- a/lib/program.js +++ b/lib/program.js @@ -2818,6 +2818,39 @@ Program.prototype.normalBuffer = function() { }; Program.prototype.enableMouse = function() { + console.log(process.env.BLESSED_FORCE_MODES); + if (process.env.BLESSED_FORCE_MODES) { + var modes=process.env.BLESSED_FORCE_MODES.split(','); + var options={}; + for (var n=0; n