From 9511fe6f01bb938fac2200943bab4fa5f7043a14 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 6 Apr 2013 23:04:13 +0200 Subject: [PATCH] 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 1caaffc8..1cf9a538 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;