billiob pushed a commit to branch master.
commit 9511fe6f01bb938fac2200943bab4fa5f7043a14
Author: Boris Faure <[email protected]>
Date: Sat Apr 6 23:04:13 2013 +0200
fix mouse interactions using urxvt style (in mc)
Bug easily fixed with the help of ptyproxy :)
---
src/bin/termio.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 1caaffc..1cf9a53 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -1796,7 +1796,7 @@ _rep_mouse_down(Termio *sd, Evas_Event_Mouse_Down *ev,
int cx, int cy)
if (btn > 2) btn = 0;
snprintf(buf, sizeof(buf), "%c[%i;%i;%iM", 0x1b,
(btn | shift | meta | ctrl) + ' ',
- cx + 1 + ' ', cy + 1 + ' ');
+ cx + 1, cy + 1);
termpty_write(sd->pty, buf, strlen(buf));
ret = EINA_TRUE;
}
@@ -1880,7 +1880,7 @@ _rep_mouse_up(Termio *sd, Evas_Event_Mouse_Up *ev, int
cx, int cy)
{
snprintf(buf, sizeof(buf), "%c[%i;%i;%iM", 0x1b,
(3 | shift | meta | ctrl) + ' ',
- cx + 1 + ' ', cy + 1 + ' ');
+ cx + 1, cy + 1);
termpty_write(sd->pty, buf, strlen(buf));
ret = EINA_TRUE;
}
@@ -1972,7 +1972,7 @@ _rep_mouse_move(Termio *sd, Evas_Event_Mouse_Move *ev,
int cx __UNUSED__, int cy
if (btn > 2) btn = 0;
snprintf(buf, sizeof(buf), "%c[%i;%i;%iM", 0x1b,
(btn | shift | meta | ctrl | 32) + ' ',
- cx + 1 + ' ', cy + 1 + ' ');
+ cx + 1, cy + 1);
termpty_write(sd->pty, buf, strlen(buf));
ret = EINA_TRUE;
}
@@ -2445,7 +2445,7 @@ _smart_cb_mouse_wheel(void *data, Evas *e __UNUSED__,
Evas_Object *obj __UNUSED_
{
snprintf(buf, sizeof(buf), "%c[%i;%i;%iM", 0x1b,
btn + ' ',
- cx + 1 + ' ', cy + 1 + ' ');
+ cx + 1, cy + 1);
termpty_write(sd->pty, buf, strlen(buf));
}
break;
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html