[ekg2-commit] ekg2: mouse.c (HEAD) [peres]
CVS commit
cvs w toxygen.net
Sob, 27 Paź 2007, 19:57:08 CEST
Module name: ekg2
Changes by: peres 2007-10-27 19:57:05
Modified files:
mouse.c
Log message:
Disabling of mouse reporting in xterm mode.
Index: mouse.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/ncurses/mouse.c,v
diff -d -u -r1.32 -r1.33
--- mouse.c 21 Oct 2007 10:13:07 -0000 1.32
+++ mouse.c 27 Oct 2007 17:57:05 -0000 1.33
@@ -351,6 +351,12 @@
#ifdef HAVE_LIBGPM
if (gpm_fd >= 0)
watch_remove(&ncurses_plugin, gpm_fd, WATCH_READ);
+ else { /* if GPM is not used, but we have mouse on, then it's xterm */
+#endif
+ printf("\033[?1000l\033[?1001r"); /* we would like to disable it if restoring flag won't work */
+ fflush(stdout);
+#ifdef HAVE_LIBGPM
+ }
Gpm_Close();
#endif
Więcej informacji o liście dyskusyjnej ekg2-commit