fix broken urxvt mouse reports

http-comm
Ondřej Hruška 7 years ago
parent cd79d5cf25
commit 7e2491cd7b
  1. 2
      front-end
  2. 2
      user/cgi_sockets.c

@ -1 +1 @@
Subproject commit d7551c3ea946815236ef697129eecd55feaa5d82
Subproject commit 53a6ab4a845fc4633fb4eaa725aa60802b60c92f

@ -223,7 +223,7 @@ void ICACHE_FLASH_ATTR sendMouseAction(char evt, int y, int x, int button, u8 mo
sprintf(buf, "\x1b[<%d;%d;%d%c", eventcode, x, y, (evt == 'p'||(evt=='m'&&button>0)) ? 'M' : 'm');
}
else if (mte == MTE_URXVT) {
sprintf(buf, "\x1b[%d;%d;%dM", (u8)(32+eventcode), (u8)(32+x), (u8)(32+y));
sprintf(buf, "\x1b[%d;%d;%dM", (u8)(32+eventcode), (u8)(x), (u8)(y));
}
UART_SendAsync(buf, -1);

Loading…
Cancel
Save