Skip to content
Snippets Groups Projects
Commit 8bd3de0e authored by rswindell's avatar rswindell
Browse files

Use the new USE_MOUSE setting flag to determine if the user wants

(and their terminal supports) mouse reporting.
parent fcbc5955
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ if(!ansiterm) ...@@ -90,7 +90,7 @@ if(!ansiterm)
function mouse_enable(enable) function mouse_enable(enable)
{ {
if(console.term_supports(USER_ANSI)) { if(console.term_supports(USER_ANSI|USER_MOUSE)) {
ansiterm.send('mouse', enable ? 'set' : 'clear', 'x10_compatible'); ansiterm.send('mouse', enable ? 'set' : 'clear', 'x10_compatible');
ansiterm.send('mouse', enable ? 'set' : 'clear', 'extended_coord'); ansiterm.send('mouse', enable ? 'set' : 'clear', 'extended_coord');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment