Skip to content
Snippets Groups Projects
Commit 9546e85a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Be more aggressive about setting mouse modes.

When starting, turn off all mouse modes, then turn on the ones we
need instead of relying on the console object to do anything in
particular.

On exit, explicitly turn off the two modes we had enabled before
changing the console setting.

Maybe this will fix the SyncTERM bug 153
parent 8624486f
No related branches found
No related tags found
No related merge requests found
......@@ -1245,8 +1245,8 @@ function detect_graphics()
console.ctrlkey_passthru = tmpckpt;
if (graph) {
console.mouse_mode = false;
console.write("\x1b[?1003;1006h");
js.on_exit("console.mouse_mode = orig_mouse; user.misc = orig_misc; console.autoterm = orig_autoterm;");
console.write("\x1b[?9;1000;1001;1002;1004;1005;1007;1015;1016l\x1b[?1003;1006h");
js.on_exit("console.write('\x1b[?1003;1006l;'); console.mouse_mode = orig_mouse; user.misc = orig_misc; console.autoterm = orig_autoterm;");
}
}
......
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