]> Sergey Matveev's repositories - nnn.git/commitdiff
Revert "fix: no mouse support inside vim terminal"
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 21 Oct 2021 19:00:11 +0000 (00:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 21 Oct 2021 19:00:11 +0000 (00:30 +0530)
This reverts commit dd7c13dd77cd8e63cd776dc703e23399b64afd32.

Single/double mouse click breaks on xfce4-terminal and xterm on Ubuntu 20.04

src/nnn.c

index 00e6bc2f519d6f524a45fc2f92aa1e5d437205a3..20415cf6088369df21ab3be8a1c248d449f416f5 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2079,10 +2079,6 @@ static bool initcurses(void *oldmask)
        //intrflush(stdscr, FALSE);
        keypad(stdscr, TRUE);
 #ifndef NOMOUSE
-#ifndef NOX11
-       printf("\x1b[?1000h\n"); /* xterm X10 mouse mode */
-       printf("\x1b[?1006h\n"); /* extended SGR mouse mode */
-#endif
 #if NCURSES_MOUSE_VERSION <= 1
        mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED | BUTTON2_PRESSED | BUTTON3_PRESSED,
                  (mmask_t *)oldmask);